File: fix-for-nodejs-20.patch

package info (click to toggle)
node-read-package-json 5.0.2%2B~2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 552 kB
  • sloc: javascript: 1,328; makefile: 2; sh: 1
file content (25 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Yadd <yadd@debian.org>
Date: Wed, 19 Nov 2025 16:25:23 +0100
Subject: fix test for nodejs 20

Bug-Debian: https://bugs.debian.org/1072603
Forwarded: not-needed
Last-Update: 2024-06-10

Error strings chenged
---
 test/helpful.js | 1 -
 1 file changed, 1 deletion(-)

diff --git a/test/helpful.js b/test/helpful.js
index 4b6edbb..f691184 100644
--- a/test/helpful.js
+++ b/test/helpful.js
@@ -6,7 +6,6 @@ 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.end()
   })
 })