From a2f4b77618fc31e65dd2d0d685377e13ca3525b6 Mon Sep 17 00:00:00 2001 From: Superchupu <53496941+SuperchupuDev@users.noreply.github.com> Date: Thu, 28 Nov 2024 12:41:37 +0100 Subject: [PATCH] format --- test/index.test.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/index.test.ts b/test/index.test.ts index 2fc4fdb..3e29650 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -26,12 +26,6 @@ const cwd = fixture.path; after(() => fixture.rm()); -test('only double star', async () => { - const files = await glob({ patterns: ['**'], cwd }); - assert.deepEqual(files.sort(), ['a/a.txt', 'a/b.txt', 'b/a.txt', 'b/b.txt']); -}); - - test('directory expansion', async () => { const files = await glob({ patterns: ['a'], cwd }); assert.deepEqual(files.sort(), ['a/a.txt', 'a/b.txt']); @@ -42,6 +36,11 @@ test('empty array matches nothing', async () => { assert.deepEqual(files.sort(), []); }); +test('only double star', async () => { + const files = await glob({ patterns: ['**'], cwd }); + assert.deepEqual(files.sort(), ['a/a.txt', 'a/b.txt', 'b/a.txt', 'b/b.txt']); +}); + test('no directory expansion if expandDirectories is set to false', async () => { const files = await glob({ patterns: ['a'], expandDirectories: false, cwd }); assert.deepEqual(files.sort(), []);