diff --git a/test/red/api/auth/index_spec.js b/test/red/api/auth/index_spec.js index 2d98ed4d3..bb6a33be2 100644 --- a/test/red/api/auth/index_spec.js +++ b/test/red/api/auth/index_spec.js @@ -64,7 +64,9 @@ describe("api auth middleware",function() { revokeToken.restore(); resp.should.equal(200); - done(); + return { + end: done + } }}; auth.revoke(req,res);