We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0b9c69 commit 6a26520Copy full SHA for 6a26520
spec/helper.ts
@@ -94,8 +94,8 @@ export function runHandler(
94
}
95
96
public on(event: string, callback: () => void) {
97
- if (event !== "finish") {
98
- throw new Error("MockResponse only implements the finish event");
+ if (event !== "finish" && event !== "close") {
+ throw new Error("MockResponse only implements close and finish event");
99
100
this.callback = callback;
101
0 commit comments