Skip to content

Commit

Permalink
Correctly catch exception in http test (axios#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
codeclown authored and emilyemorehouse committed Apr 11, 2018
1 parent ec97c68 commit 961ecd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/adapters/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ module.exports = {
test.equal(resp.status, 200);
test.equal(resp.statusText, 'OK');
test.done();
})
.catch(function (error) {
test.ifError(error);
test.done();
});
});
},
Expand Down

0 comments on commit 961ecd1

Please sign in to comment.