Skip to content

Commit

Permalink
The glob package is case-insensitive on Windows and macOS (!!), so up…
Browse files Browse the repository at this point in the history
…date tests to exclude newly-added UPPER.MD file and behave like before the previous commit.
  • Loading branch information
DavidAnson committed Feb 24, 2024
1 parent c7638a4 commit 2fe16f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ test('dir linting works with failing .markdown files and absolute path', async t
});

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

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

0 comments on commit 2fe16f4

Please sign in to comment.