Skip to content

Commit 03f82de

Browse files
test: remove await in test
1 parent 9f8226e commit 03f82de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/flags.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('traverseForFiles', () => {
4747
});
4848

4949
it('should find all yaml files when no excludeDirs is provided', async () => {
50-
const results = await traverseForFiles(testDir, ['.yml', '.yaml']);
50+
const results = traverseForFiles(testDir, ['.yml', '.yaml']);
5151
expect(results).to.have.lengthOf(6);
5252
expect(results).to.include(join(testDir, 'file1.yml'));
5353
expect(results).to.include(join(testDir, 'file2.yaml'));
@@ -58,7 +58,7 @@ describe('traverseForFiles', () => {
5858
});
5959

6060
it('should exclude specified directories', async () => {
61-
const results = await traverseForFiles(testDir, ['.yml', '.yaml'], ['node_modules', 'excluded']);
61+
const results = traverseForFiles(testDir, ['.yml', '.yaml'], ['node_modules', 'excluded']);
6262
expect(results).to.have.lengthOf(4);
6363
expect(results).to.include(join(testDir, 'file1.yml'));
6464
expect(results).to.include(join(testDir, 'file2.yaml'));
@@ -69,7 +69,7 @@ describe('traverseForFiles', () => {
6969
});
7070

7171
it('should handle empty excludeDirs array', async () => {
72-
const results = await traverseForFiles(testDir, ['.yml', '.yaml'], []);
72+
const results = traverseForFiles(testDir, ['.yml', '.yaml'], []);
7373
expect(results).to.have.lengthOf(6);
7474
});
7575
});

0 commit comments

Comments
 (0)