Skip to content

Commit

Permalink
fix error msg parsing on win
Browse files Browse the repository at this point in the history
  • Loading branch information
meisam committed Jul 31, 2023
1 parent b8612c6 commit 52ddb71
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 @@ -415,7 +415,7 @@ test('error on configuration file not found', async t => {
await execa('../markdownlint.js', ['--config', 'non-existent-file-path.yaml', 'correct.md'], {stripFinalNewline: false});
} catch (error) {
t.is(error.stdout, '');
t.regex(error.stderr, /Cannot read or parse config file 'non-existent-file-path.yaml': ENOENT: no such file or directory, open 'non-existent-file-path.yaml'/);
t.regex(error.stderr, /Cannot read or parse config file 'non-existent-file-path\.yaml': ENOENT: no such file or directory, open '.*non-existent-file-path\.yaml'/);
t.is(error.exitCode, 4);
}
});
Expand Down

0 comments on commit 52ddb71

Please sign in to comment.