Skip to content

Commit

Permalink
Skip glob testing on Windows (not supported)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Nov 6, 2023
1 parent a2b8fa2 commit 351dec2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/mocha.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,9 @@ describe('Executing the CLI', () => {
});

it('with a glob selects the correct files to validate', () => {
const actual = run('html-validator "spec/**/valid.html" --note=glob');
const expected = null;
const globbable = process.platform !== 'win32';
const actual = globbable ? run('html-validator "spec/**/valid.html" --note=glob') : null;
const expected = null;
assertDeepStrictEqual(actual, expected);
});

Expand Down

0 comments on commit 351dec2

Please sign in to comment.