Skip to content

Commit

Permalink
fix(package): update parse-json to version 4.0.0 (#1181)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar303 committed Jan 5, 2018
1 parent aa8ea57 commit 79f3f78
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -68,7 +68,7 @@
"node-firefox-connect": "1.2.0",
"node-notifier": "5.1.2",
"open": "0.0.5",
"parse-json": "2.2.0",
"parse-json": "4.0.0",
"regenerator-runtime": "0.11.1",
"require-uncached": "1.0.3",
"sign-addon": "0.2.2",
Expand Down
5 changes: 3 additions & 2 deletions tests/unit/test-cmd/test.build.js
Expand Up @@ -132,8 +132,9 @@ describe('build', () => {
.then(makeSureItFails())
.catch((error) => {
assert.instanceOf(error, UsageError);
assert.match(error.message, /Unexpected token '"' at 1:15/);
assert.match(error.message, /^Error parsing messages.json/);
assert.match(
error.message, /Unexpected string in JSON at position 14/);
assert.match(error.message, /^Error parsing messages\.json/);
assert.include(error.message, messageFileName);
});
}
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test-util/test.manifest.js
Expand Up @@ -62,7 +62,8 @@ describe('util/manifest', () => {
.then(makeSureItFails())
.catch(onlyInstancesOf(InvalidManifest, (error) => {
assert.match(error.message, /Error parsing manifest\.json at /);
assert.include(error.message, 'Unexpected token \' \' at 2:49');
assert.include(
error.message, 'Unexpected token in JSON at position 49');
assert.include(error.message, manifestFile);
}));
}
Expand Down

0 comments on commit 79f3f78

Please sign in to comment.