Permalink
Browse files

Simplify tests

  • Loading branch information...
jerolimov committed Jul 14, 2014
1 parent 22d816c commit 6118cdc2ecf216600665d353ae0b25ad47b33ee4
Showing with 3 additions and 18 deletions.
  1. +3 −18 app/tests/api.js
View
@@ -13,12 +13,7 @@ describe('API authentification', function() {
request
.get('/api/users/me')
.expect(401)
- .end(function(err){
- if (err) {
- return done(err);
- }
- done();
- });
+ .end(done);
});
});
@@ -27,12 +22,7 @@ describe('API authentification', function() {
request
.post('/api/login')
.expect(400)
- .end(function(err){
- if (err) {
- return done(err);
- }
- done();
- });
+ .end(done);
});
});
@@ -50,12 +40,7 @@ describe('API authentification', function() {
.post('/api/login')
.send(credentials)
.expect(401)
- .end(function(err){
- if (err) {
- return done(err);
- }
- done();
- });
+ .end(done);
});
});
});

0 comments on commit 6118cdc

Please sign in to comment.