tests: fix error-handling typo

closes #2557
This commit is contained in:
Seth Krasnianski
2015-02-21 13:25:25 -05:00
committed by Douglas Christopher Wilson
parent fa546bff85
commit 8fe5fd89c6

View File

@@ -29,7 +29,7 @@ describe('req', function(){
.get('/')
.set('Cookie', cookie)
.end(function(err, res){
if (err) return don(err);
if (err) return done(err);
res.body.should.eql({ obj: { foo: 'bar' } });
done();
});