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

Function mockUpMongoStrategy

server/test/security.js:36–45  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

34}
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}
46
47module.exports = {
48 initialize: function(test) {

Callers 1

security.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected