Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
chore: fix tests for node v20 (#175)
Browse files Browse the repository at this point in the history
* chore: fix tests for node v20

node v20 gives a totally different error message parsing the invalid JSON

* chore: raise the floor on coverage
  • Loading branch information
wraithgar committed May 3, 2023
1 parent f4c3966 commit 0d4d6b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -42,10 +42,10 @@
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
},
"tap": {
"branches": 68,
"functions": 74,
"lines": 74,
"statements": 74,
"branches": 73,
"functions": 77,
"lines": 77,
"statements": 77,
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
Expand Down
2 changes: 1 addition & 1 deletion test/helpful.js
Expand Up @@ -6,7 +6,7 @@ var p = path.resolve(__dirname, 'fixtures/erroneous.json')
tap.test('erroneous package data', function (t) {
readJson(p, function (er, data) {
t.ok(er instanceof Error)
t.ok(er.message.match(/Unexpected token "'" \(0x27\)/))
t.equal(er.code, 'EJSONPARSE')
t.end()
})
})
Expand Down

0 comments on commit 0d4d6b6

Please sign in to comment.