Skip to content

Commit 00f3f47

Browse files
meisamDavidAnson
meisam
authored andcommitted
fix error msg parsing on win
1 parent cbaed8e commit 00f3f47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ test('error on configuration file not found', async t => {
415415
await execa('../markdownlint.js', ['--config', 'non-existent-file-path.yaml', 'correct.md'], {stripFinalNewline: false});
416416
} catch (error) {
417417
t.is(error.stdout, '');
418-
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'/);
418+
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'/);
419419
t.is(error.exitCode, 4);
420420
}
421421
});

0 commit comments

Comments
 (0)