From e75a9918db7d02fb194738f4cf7889c9bbe11d36 Mon Sep 17 00:00:00 2001 From: Carl Bennett Date: Thu, 10 Sep 2015 09:23:27 +1200 Subject: [PATCH] Another attempt at fixing the tests --- test/integration/delete-resource/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/integration/delete-resource/index.js b/test/integration/delete-resource/index.js index 8c1b4bad..4aa9d042 100644 --- a/test/integration/delete-resource/index.js +++ b/test/integration/delete-resource/index.js @@ -26,11 +26,10 @@ describe("Delete Resource", () => { it("should return 403", (done) => { Agent.request("DEL", "/schools/53f54dd98d1e62ff12539db4") .promise() - .then(done) - .catch((err) => { + .then(done, (err) => { expect(err.status).to.equal(403); done(); - }); + }).catch(done); }); }); });