MCPcopy
hub / github.com/mailvelope/mailvelope / reset

Method reset

test/unit/__mocks__/lib/EventHandler.js:36–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Calls

no outgoing calls

Tested by

no test coverage detected