Skip to content

Commit b242c2e

Browse files
WC-3583 Fix unawaited async assertion
vitest yelled at me and told me this should be awaited and may error in future releases
1 parent 6072eb8 commit b242c2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/workers-shared/router-worker/tests/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe("unit tests", async () => {
1515
},
1616
} as Env;
1717

18-
void expect(
18+
await expect(
1919
async () => await worker.fetch(request, env, ctx)
2020
).rejects.toThrowError(
2121
"Fetch for user worker without having a user worker binding"

0 commit comments

Comments
 (0)