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

Function mockUpPassport

server/test/security.js:22–34  ·  view source on GitHub ↗
(test, authenticated)

Source from the content-addressed store, hash-verified

20}
21
22function mockUpPassport(test, authenticated) {
23 var spies = { };
24 security.__set__('passport', {
25 use: function(fn) {
26 spies.useCalled = true;
27 },
28 authenticate: function(strategy, callback) {
29 spies.authenticateCalled = true;
30 return function() { callback(); };
31 }
32 });
33 return spies;
34}
35
36function mockUpMongoStrategy(test) {
37 var strategy = function(dbUrl, apiKey, dbName, usersCollection) {

Callers 1

security.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected