Skip to content

Commit 6985d11

Browse files
committed
Fix where whenLoggedInAsUserWithRole didn't pass role
1 parent bf393b4 commit 6985d11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/helpers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ _beforeEach.givenUserWithRole = function (attrs, role, optionalHandler) {
164164
if(err.details) console.error(err.details);
165165
return done(err);
166166
}
167-
167+
168168
test.userRoleMapping = result;
169169
done();
170170
}
@@ -312,7 +312,7 @@ _describe.whenLoggedInAsUser = function(credentials, cb) {
312312

313313
_describe.whenLoggedInAsUserWithRole = function(credentials, role, cb) {
314314
describe('when logged in as user', function () {
315-
_beforeEach.givenLoggedInUser(credentials, role);
315+
_beforeEach.givenLoggedInUserWithRole(credentials, role);
316316
cb();
317317
});
318318
}
@@ -328,7 +328,7 @@ _describe.whenCalledByUserWithRole = function (credentials, role, verb, url, dat
328328
describe('when called by logged in user with role ' + role, function () {
329329
_beforeEach.givenLoggedInUserWithRole(credentials, role);
330330
_describe.whenCalledRemotely(verb, url, data, cb);
331-
});
331+
});
332332
}
333333

334334
_describe.whenCalledAnonymously = function(verb, url, data, cb) {

0 commit comments

Comments
 (0)