From 8f414ce458ebeccf60d2091c50b42e54ca9f1aec Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Sat, 3 Oct 2015 20:32:24 +0100 Subject: [PATCH] Update auth revoke test for express 4 --- test/red/api/auth/index_spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);