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

Function stubPoller

test/unit/sdam/srv_polling.test.ts:45–48  ·  view source on GitHub ↗
(poller)

Source from the content-addressed store, hash-verified

43
44 describe('SrvPoller', function () {
45 function stubPoller(poller) {
46 sinon.stub(poller, 'success');
47 sinon.stub(poller, 'failure');
48 }
49
50 it('should always return a valid value for `intervalMS`', function () {
51 const poller = new SrvPoller({ srvHost: SRV_HOST });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected