Skip to content

Commit

Permalink
Test: on timeout err.error is an Error
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed May 20, 2016
1 parent 3b7a99c commit 792937b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ doTest.add ('Error: request timeout', function (test) {
test ()
.isError ('fail', 'err', err)
.isExactly ('fail', 'err.message', err && err.message, 'request failed')
.isObject ('fail', 'err.error', err && err.error)
.isError ('fail', 'err.error', err && err.error)
.isExactly ('fail', 'err.error.code', err && err.error && err.error.code, 'TIMEOUT')
.done ();
});
Expand Down

0 comments on commit 792937b

Please sign in to comment.