()
| 34 | |
| 35 | // Reset the mock state |
| 36 | reset() { |
| 37 | this._events = { |
| 38 | emit: [], |
| 39 | on: [], |
| 40 | send: [] |
| 41 | }; |
| 42 | this._responses = {}; |
| 43 | this._options = {}; |
| 44 | this.on.mockClear(); |
| 45 | this.emit.mockClear(); |
| 46 | this.send.mockClear(); |
| 47 | this.disconnect.mockClear(); |
| 48 | } |
| 49 | |
| 50 | on = jest.fn(event => { |
| 51 | this._events.on.push(event); |
no outgoing calls
no test coverage detected