diff --git a/lib/__tests__/fixtures/globs/[glob-and-path]/sub-dir/styles.css b/lib/__tests__/fixtures/globs/[digit]/not-digits/styles.css similarity index 100% rename from lib/__tests__/fixtures/globs/[glob-and-path]/sub-dir/styles.css rename to lib/__tests__/fixtures/globs/[digit]/not-digits/styles.css diff --git a/lib/__tests__/fixtures/globs/got [many] (special) + !chars/styles.css b/lib/__tests__/fixtures/globs/extglob?(s)/styles.css similarity index 100% rename from lib/__tests__/fixtures/globs/got [many] (special) + !chars/styles.css rename to lib/__tests__/fixtures/globs/extglob?(s)/styles.css diff --git a/lib/__tests__/fixtures/globs/got(brackets)/styles.css b/lib/__tests__/fixtures/globs/got!negate/negate/styles.css similarity index 100% rename from lib/__tests__/fixtures/globs/got(brackets)/styles.css rename to lib/__tests__/fixtures/globs/got!negate/negate/styles.css diff --git a/lib/__tests__/fixtures/globs/got[braces] and (spaces)/styles.css b/lib/__tests__/fixtures/globs/got[braces] and (spaces)/styles.css new file mode 100644 index 0000000000..077f6dd7c0 --- /dev/null +++ b/lib/__tests__/fixtures/globs/got[braces] and (spaces)/styles.css @@ -0,0 +1 @@ +a {} diff --git a/lib/__tests__/fixtures/globs/with spaces/styles.css b/lib/__tests__/fixtures/globs/with spaces/styles.css new file mode 100644 index 0000000000..077f6dd7c0 --- /dev/null +++ b/lib/__tests__/fixtures/globs/with spaces/styles.css @@ -0,0 +1 @@ +a {} diff --git a/lib/__tests__/standalone-globs.test.js b/lib/__tests__/standalone-globs.test.js index cf7836e00e..df3783d9be 100644 --- a/lib/__tests__/standalone-globs.test.js +++ b/lib/__tests__/standalone-globs.test.js @@ -191,35 +191,3 @@ describe('standalone globbing', () => { /* eslint-enable */ }); }); - -// const cases = [ -// // [`glob and matched path contain different special chars`, `${fixturesPath}/[glob-and-path]/*.css`, undefined], -// // [`complex example`, `${fixturesPath}/got[braces] and (spaces)/*.+(s|c)ss`, undefined], - -// // description, glob, globbyOptions -// [`manual escaping`, `${fixturesPath}/got\\[braces\\] and \\(spaces\\)/*.+(s|c)ss`, undefined], -// [ -// `using cwd globbyOption`, -// `*.+(s|c)ss`, -// { -// cwd: `${fixturesPath}/got[braces] and (spaces)/`, -// }, -// ], -// ]; - -// it.each(cases)(`%s`, async (_, glob, globbyOptions) => { -// const { results } = await standalone({ -// files: glob, -// globbyOptions, -// config: { rules: { 'block-no-empty': true } }, -// }); - -// expect(results).toHaveLength(1); -// expect(results[0].errored).toEqual(true); -// expect(results[0].warnings[0]).toEqual( -// expect.objectContaining({ -// rule: 'block-no-empty', -// severity: 'error', -// }), -// ); -// });