Skip to content

Commit 790c182

Browse files
committed
chore: add missing executors in some tests
1 parent 5b049af commit 790c182

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

__tests__/fdir.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ for (const type of apiTypes) {
101101
.withMaxDepth(1)
102102
.withBasePath()
103103
.crawl("node_modules");
104+
const files = await api[type]();
104105
t.expect(
105106
files.every((file) => file.split(path.sep).length <= 3)
106107
).toBeTruthy();
@@ -258,6 +259,7 @@ for (const type of apiTypes) {
258259
.withBasePath()
259260
.group()
260261
.crawl("node_modules");
262+
const result = await api[type]();
261263
t.expect(result.length).toBeGreaterThan(0);
262264
});
263265

@@ -337,6 +339,7 @@ for (const type of apiTypes) {
337339
.withErrors()
338340
.withRelativePaths()
339341
.crawl("./node_modules/");
342+
const paths = await api[type]();
340343
t.expect(
341344
paths.every((p) => !p.startsWith("node_modules") && !p.includes("//"))
342345
).toBeTruthy();
@@ -425,6 +428,7 @@ for (const type of apiTypes) {
425428
})
426429
.withErrors()
427430
.crawl("node_modules");
431+
await api[type]();
428432
if (type === "withPromise") {
429433
t.expect(readdirStub).toHaveBeenCalled();
430434
} else {

0 commit comments

Comments
 (0)