Skip to content

Commit 2fe16f4

Browse files
committed
The glob package is case-insensitive on Windows and macOS (!!), so update tests to exclude newly-added UPPER.MD file and behave like before the previous commit.
1 parent c7638a4 commit 2fe16f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ test('dir linting works with failing .markdown files and absolute path', async t
198198
});
199199

200200
test('glob linting with failing files passes when failures ignored by glob', async t => {
201-
const result = await execa('../markdownlint.js', ['--config', 'test-config.json', '**/*.md', '--ignore', '**/incorrect.md'], {stripFinalNewline: false});
201+
const result = await execa('../markdownlint.js', ['--config', 'test-config.json', '**/i*.md', '--ignore', '**/incorrect.md'], {stripFinalNewline: false});
202202
t.is(result.stdout, '');
203203
t.is(result.stderr, '');
204204
t.is(result.exitCode, 0);
@@ -256,7 +256,7 @@ test('dir linting with failing files has fewer errors when ignored by file and a
256256
});
257257

258258
test('glob linting with failing files passes when ignored by multiple globs', async t => {
259-
const result = await execa('../markdownlint.js', ['--config', 'test-config.json', 'subdir-incorrect', '--ignore', '**/*.md', '--ignore', '**/*.markdown'], {stripFinalNewline: false});
259+
const result = await execa('../markdownlint.js', ['--config', 'test-config.json', 'subdir-incorrect', '--ignore', '**/*.md', '--ignore', '**/*.markdown', '--ignore', '**/*.MD'], {stripFinalNewline: false});
260260
t.is(result.stdout, '');
261261
t.is(result.stderr, '');
262262
t.is(result.exitCode, 0);

0 commit comments

Comments
 (0)