Skip to content

Commit b226cb9

Browse files
committed
ava: fix throwsAsync API change
1 parent b45eeae commit b226cb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/spawn.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ test("can spawn a module thread", async t => {
4646

4747
test("thread job errors are handled", async t => {
4848
const fail = await spawn<() => Promise<never>>(new Worker("./workers/faulty-function"))
49-
await t.throwsAsync(fail(), "I am supposed to fail.")
49+
await t.throwsAsync(fail(), null, "I am supposed to fail.")
5050
await Thread.terminate(fail)
5151
})
5252

@@ -64,7 +64,7 @@ test("thread transfer errors are handled", async t => {
6464
})
6565

6666
test("catches top-level thread errors", async t => {
67-
await t.throwsAsync(spawn(new Worker("./workers/top-level-throw")), "Top-level worker error")
67+
await t.throwsAsync(spawn(new Worker("./workers/top-level-throw")), null, "Top-level worker error")
6868
})
6969

7070
test.todo("can subscribe to thread events")

0 commit comments

Comments
 (0)