Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Nov 28, 2024
1 parent 20ce766 commit a2f4b77
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand All @@ -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(), []);
Expand Down

0 comments on commit a2f4b77

Please sign in to comment.