MCPcopy
hub / github.com/mongodb/node-mongodb-native / reset

Method reset

test/tools/utils.ts:85–99  ·  view source on GitHub ↗
(eventName: string)

Source from the content-addressed store, hash-verified

83 }
84
85 reset(eventName: string) {
86 if (eventName == null) {
87 Object.keys(this._events).forEach(eventName => {
88 this._events[eventName] = [];
89 });
90
91 return;
92 }
93
94 if (this._events[eventName] == null) {
95 throw new TypeError(`invalid event name "${eventName}" specified for reset`);
96 }
97
98 this._events[eventName] = [];
99 }
100
101 waitForEventImpl(
102 collector: this,

Callers 1

metrics.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected