From 3b4cadf7a3c87978f6c4cb23fcb786ee77169e86 Mon Sep 17 00:00:00 2001 From: Ron Edgecomb Date: Mon, 22 Dec 2014 15:39:47 -0500 Subject: [PATCH] Update to demonstrate unit test is actually failing due to incorrect values of invalidCredentials - strongloop/loopback#944 --- test/user.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/user.test.js b/test/user.test.js index 60ef9182..a8852c83 100644 --- a/test/user.test.js +++ b/test/user.test.js @@ -223,6 +223,9 @@ describe('User', function() { .expect(401) .send(invalidCredentials) .end(function(err, res) { + if (err) { + return done(err); + } done(); }); });