'done' is not defined

This commit is contained in:
Rob Halff 2014-11-21 02:52:11 +01:00
parent 4ee7b5f440
commit a722f8c4cf
1 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ describe('loopback.rest', function() {
.set('Authorization', token.id)
.expect(200)
.end(done);
});
}, done);
});
it('does not include loopback.token when auth not enabled', function(done) {
@ -127,7 +127,7 @@ describe('loopback.rest', function() {
expect(res.body.id).to.equal(null);
done();
});
});
}, done);
});
describe('context propagation', function() {
@ -255,7 +255,7 @@ describe('loopback.rest', function() {
dataSource: 'db'
});
}
function givenLoggedInUser(cb) {
function givenLoggedInUser(cb, done) {
var credentials = { email: 'user@example.com', password: 'pwd' };
var User = app.models.user;
User.create(credentials,