This repository has been archived by the owner on May 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgpkg: web-ext 7.4.0-1; make tests pass on Node.js 19 & make tests m…
…ore robust See: mozilla/web-ext#2564 git-svn-id: file:///srv/repos/svn-community/svn@1354113 9fca08f4-af9d-4005-b8df-a31f2cc04f65
- Loading branch information
yan12125
committed
Nov 27, 2022
1 parent
6424cb8
commit 7fd6769
Showing
2 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/tests/unit/test-cmd/test.build.js b/tests/unit/test-cmd/test.build.js | ||
index 9a63278..97e1295 100644 | ||
--- a/tests/unit/test-cmd/test.build.js | ||
+++ b/tests/unit/test-cmd/test.build.js | ||
@@ -269,7 +269,7 @@ describe('build', () => { | ||
assert.instanceOf(error, UsageError); | ||
assert.match( | ||
error.message, | ||
- /Unexpected string in JSON at position 14/ | ||
+ /Expected ':' after property name in JSON at position 14/ | ||
); | ||
assert.match(error.message, /^Error parsing messages\.json/); | ||
assert.include(error.message, messageFileName); | ||
diff --git a/tests/unit/test-util/test.manifest.js b/tests/unit/test-util/test.manifest.js | ||
index 7e9e17a..5fc665e 100644 | ||
--- a/tests/unit/test-util/test.manifest.js | ||
+++ b/tests/unit/test-util/test.manifest.js | ||
@@ -70,7 +70,7 @@ describe('util/manifest', () => { | ||
); | ||
assert.include( | ||
error.message, | ||
- 'Unexpected token "," (0x2C) in JSON at position 51' | ||
+ 'Expected double-quoted property name in JSON at position 51' | ||
); | ||
assert.include(error.message, manifestFile); | ||
}) |