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

Function cleanUpUsers

test/integration/auth/auth.prose.test.ts:341–348  ·  view source on GitHub ↗
(configuration: TestConfiguration)

Source from the content-addressed store, hash-verified

339 ];
340
341 async function cleanUpUsers(configuration: TestConfiguration) {
342 const utilClient = configuration.newClient();
343 const db = utilClient.db('admin');
344
345 await Promise.allSettled(users.map(user => db.removeUser(user.username)));
346
347 await utilClient.close();
348 }
349
350 async function createUsers(configuration: TestConfiguration) {
351 const utilClient = configuration.newClient();

Callers 1

auth.prose.test.tsFile · 0.85

Calls 5

newClientMethod · 0.45
dbMethod · 0.45
mapMethod · 0.45
removeUserMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected