Skip to content

Commit

Permalink
Update test to handle new npm 7.5.6 behavior of omitting banner. (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Mar 8, 2021
1 parent 014e777 commit ec44b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ test('linting of incorrect Markdown via npm run file fails with eol', async t =>
await execa('npm', ['run', 'invalid'], {stripFinalNewline: false});
t.fail();
} catch (error) {
t.regex(error.stderr, /MD\d{3}.*\nnpm ERR!/);
t.regex(error.stderr, /MD\d{3}.*((\nnpm ERR!)|(\n$))/);
}
});

Expand Down

0 comments on commit ec44b2e

Please sign in to comment.