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

Function expectInstanceOf

test/tools/unified-spec-runner/match.ts:530–535  ·  view source on GitHub ↗
(
  instance: any,
  ctor: T
)

Source from the content-addressed store, hash-verified

528}
529
530function expectInstanceOf<T extends new (...args: any[]) => any>(
531 instance: any,
532 ctor: T
533): asserts instance is InstanceType<T> {
534 expect(instance).to.be.instanceOf(ctor);
535}
536
537function compareEvents(
538 actual: CommandEvent[] | CmapEvent[] | SdamEvent[],

Callers 1

compareEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected