Skip to content

Commit 6a26520

Browse files
committed
Fix test.
1 parent a0b9c69 commit 6a26520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ export function runHandler(
9494
}
9595

9696
public on(event: string, callback: () => void) {
97-
if (event !== "finish") {
98-
throw new Error("MockResponse only implements the finish event");
97+
if (event !== "finish" && event !== "close") {
98+
throw new Error("MockResponse only implements close and finish event");
9999
}
100100
this.callback = callback;
101101
}

0 commit comments

Comments
 (0)