Skip to content

Commit

Permalink
test: fix test-npm-install for npm 6.7.0 (#681)
Browse files Browse the repository at this point in the history
The checked error message differs between the version of npm included
in Node.js 11.10.0 compared to previous versions.

Fixes: #680
  • Loading branch information
richardlau authored and BridgeAR committed Feb 16, 2019
1 parent 27c6eb9 commit 96acef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/npm/test-npm-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ test('npm-install: failed install', (t) => {
);
const expected = {
testOutput: /^$/,
testError: /npm ERR! 404 Not [Ff]ound\s*: THIS-WILL-FAIL(@0\.0\.1)?/
testError: /npm ERR! 404 Not [Ff]ound\s*(:)? .*THIS-WILL-FAIL(@0\.0\.1)?/
};
packageManagerInstall('npm', context, (err) => {
t.notOk(context.module.flaky, 'Module failed is not flaky');
Expand Down

0 comments on commit 96acef9

Please sign in to comment.