From 351dec29cd3d938bd367cf9f988b0c53cc3d6bb1 Mon Sep 17 00:00:00 2001 From: dpilafian Date: Mon, 6 Nov 2023 06:53:29 -0800 Subject: [PATCH] Skip glob testing on Windows (not supported) --- spec/mocha.spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/mocha.spec.js b/spec/mocha.spec.js index 7de1927..530f357 100644 --- a/spec/mocha.spec.js +++ b/spec/mocha.spec.js @@ -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); });