Skip to content

Commit

Permalink
add reset function to MockTransport
Browse files Browse the repository at this point in the history
  • Loading branch information
ebisbe committed Oct 9, 2024
1 parent b47bec2 commit 44ad804
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/transport/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export class MockTransport implements Transport {
}
}

reset():void {
this.responses = []
}

addMock(response: string): void {
const stringResponse =
typeof response === "string" ? response : JSON.stringify(response)
Expand Down

0 comments on commit 44ad804

Please sign in to comment.