How to use the mongodb-mock-server.cleanup function in mongodb-mock-server

To help you get started, we’ve selected a few mongodb-mock-server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mongodb / node-mongodb-native / test / core / functional / rs_mocks / primary_loses_network_tests.js View on Github external
afterEach(() => {
    return mock.cleanup(test.spy).then(() => {
      test.spy = undefined;
      Connection.disableConnectionAccounting();
    });
  });
github mongodb / node-mongodb-native / test / core / functional / rs_mocks / maintanance_mode_tests.js View on Github external
afterEach(() => {
    return mock.cleanup(test.spy).then(() => {
      test.spy = undefined;
      Connection.disableConnectionAccounting();
    });
  });
github mongodb / node-mongodb-native / test / core / functional / rs_mocks / add_remove_tests.js View on Github external
afterEach(() => {
    return mock.cleanup(test.spy).then(() => {
      test.spy = undefined;
      Connection.disableConnectionAccounting();
    });
  });
github mongodb / node-mongodb-native / test / core / functional / rs_mocks / all_servers_close_tests.js View on Github external
afterEach(() => {
    return mock.cleanup(test.spy).then(() => {
      test.spy = undefined;
      Connection.disableConnectionAccounting();
    });
  });
github mongodb / node-mongodb-native / test / core / functional / rs_mocks / monitoring_tests.js View on Github external
afterEach(() => {
    return mock.cleanup(test.spy).then(() => {
      test.spy = undefined;
      Connection.disableConnectionAccounting();
    });
  });
github mongodb / node-mongodb-native / test / core / unit / mongos / reconnect_tests.js View on Github external
function stopServer() {
    Connection.disableConnectionAccounting();
    return mock.cleanup();
  }

mongodb-mock-server

A mock server useful for testing difficult to reproduce cases in MongoDB drivers

Apache-2.0
Latest version published 5 years ago

Package Health Score

36 / 100
Full package analysis