MCPcopy Create free account
hub / github.com/angular-app/angular-app / strategy

Function strategy

server/test/security.js:37–42  ·  view source on GitHub ↗
(dbUrl, apiKey, dbName, usersCollection)

Source from the content-addressed store, hash-verified

35
36function mockUpMongoStrategy(test) {
37 var strategy = function(dbUrl, apiKey, dbName, usersCollection) {
38 test.equal(dbUrl, config.dbUrl);
39 test.equal(apiKey, config.apiKey);
40 test.equal(dbName, config.dbName);
41 test.equal(usersCollection, config.usersCollection);
42 };
43 strategy.name = 'mongo';
44 security.__set__('MongoStrategy', strategy);
45}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected