* Add a definition for the given URL to return the given response. Unlike expectations, * definitions have no order and will satisfy any matching request at any time. Also * unlike expectations, unused definitions do not cause `verifyNoOutstandingExpectations` * to return an error.
(url: string, response: string)
| 46 | * to return an error. |
| 47 | */ |
| 48 | when(url: string, response: string) { |
| 49 | this._definitions.set(url, response); |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Process pending requests and verify there are no outstanding expectations. Also fails |