From 714dba22f8976bda57e84d9f42c13463b0acbc87 Mon Sep 17 00:00:00 2001 From: "Eirik S. Morland" Date: Thu, 4 Feb 2016 19:24:36 +0100 Subject: [PATCH] Check for type of error instead of undefined. --- tests/browser/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/browser/test.js b/tests/browser/test.js index 93abba7f3..2310195a1 100644 --- a/tests/browser/test.js +++ b/tests/browser/test.js @@ -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() }) })