Skip to content

Commit

Permalink
Check for type of error instead of undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Feb 4, 2016
1 parent fa2c888 commit 714dba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/browser/test.js
Expand Up @@ -18,7 +18,7 @@ tape('returns on error', function(t) {
uri: 'https://stupid.nonexistent.path:port123/\\<-great-idea',
withCredentials: false
}, function (error, response) {
t.notEqual(error, undefined)
t.equal(typeof error, 'object')
t.end()
})
})
Expand Down

0 comments on commit 714dba2

Please sign in to comment.