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