From aa53b5125a6b5d9bd2bd9565b2f0ffba458124e3 Mon Sep 17 00:00:00 2001 From: m-allanson Date: Thu, 16 Jul 2020 13:33:25 +0100 Subject: [PATCH] Update fixtures --- .../sub-dir => [digit]/not-digits}/styles.css | 0 .../styles.css | 0 .../negate}/styles.css | 0 .../globs/got[braces] and (spaces)/styles.css | 1 + .../fixtures/globs/with spaces/styles.css | 1 + lib/__tests__/standalone-globs.test.js | 32 ------------------- 6 files changed, 2 insertions(+), 32 deletions(-) rename lib/__tests__/fixtures/globs/{[glob-and-path]/sub-dir => [digit]/not-digits}/styles.css (100%) rename lib/__tests__/fixtures/globs/{got [many] (special) + !chars => extglob?(s)}/styles.css (100%) rename lib/__tests__/fixtures/globs/{got(brackets) => got!negate/negate}/styles.css (100%) create mode 100644 lib/__tests__/fixtures/globs/got[braces] and (spaces)/styles.css create mode 100644 lib/__tests__/fixtures/globs/with spaces/styles.css 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', -// }), -// ); -// });