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

Function test

test/integration/node-specific/mongo_client.test.ts:432–445  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

430 metadata: { requires: { topology: 'single' } },
431
432 test() {
433 const options = {
434 maxPoolSize: 4,
435 notlegal: {},
436 validateOptions: true
437 };
438 MongoClient.connect(this.configuration.url(), options)
439 .then(() => expect.fail())
440 .catch(err => {
441 expect(err)
442 .property('message')
443 .to.match(/options notlegal, validateoptions are not supported/);
444 });
445 }
446 });
447
448 it('must respect an infinite connectTimeoutMS for the streaming protocol', {

Callers

nothing calls this directly

Calls 4

failMethod · 0.80
matchMethod · 0.80
connectMethod · 0.45
urlMethod · 0.45

Tested by

no test coverage detected