Skip to content

Commit

Permalink
test: await promises for file scan
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielku15 committed Jan 19, 2025
1 parent f2a6432 commit cb4b487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/integration/config-file-change.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('config-file-change', () => {

// scan and test results
expect(c).to.not.be.undefined;
c!.scanFiles();
await c!.scanFiles();
expectTestTree(c!, [
['folder', [['nested.test.js', [['is nested']]]]],
['hello.test.js', [['math', [['addition'], ['subtraction']]]]],
Expand Down Expand Up @@ -100,7 +100,7 @@ describe('config-file-change', () => {

// scan and test results
expect(c).to.not.be.undefined;
c!.scanFiles();
await c!.scanFiles();
expectTestTree(c!, [['hello.test.js', [['math', [['addition'], ['subtraction']]]]]]);
});
});

0 comments on commit cb4b487

Please sign in to comment.