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

Function mockUpUser

server/test/security.js:11–20  ·  view source on GitHub ↗
(isAdmin)

Source from the content-addressed store, hash-verified

9};
10
11function mockUpUser(isAdmin) {
12 return {
13 _id : { $oid: '1234567' },
14 email: 'email',
15 password: 'password',
16 firstName: 'firstName',
17 lastName: 'lastName',
18 admin: !!isAdmin
19 };
20}
21
22function mockUpPassport(test, authenticated) {
23 var spies = { };

Callers 1

security.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected