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

Commit 0d4d6b6

Browse files
authored
chore: fix tests for node v20 (#175)
* chore: fix tests for node v20 node v20 gives a totally different error message parsing the invalid JSON * chore: raise the floor on coverage
1 parent f4c3966 commit 0d4d6b6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
4343
},
4444
"tap": {
45-
"branches": 68,
46-
"functions": 74,
47-
"lines": 74,
48-
"statements": 74,
45+
"branches": 73,
46+
"functions": 77,
47+
"lines": 77,
48+
"statements": 77,
4949
"nyc-arg": [
5050
"--exclude",
5151
"tap-snapshots/**"

test/helpful.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var p = path.resolve(__dirname, 'fixtures/erroneous.json')
66
tap.test('erroneous package data', function (t) {
77
readJson(p, function (er, data) {
88
t.ok(er instanceof Error)
9-
t.ok(er.message.match(/Unexpected token "'" \(0x27\)/))
9+
t.equal(er.code, 'EJSONPARSE')
1010
t.end()
1111
})
1212
})

0 commit comments

Comments
 (0)