From 2bc2b90f9e1517a5c79129f782607d68f57cc92f Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 15 Oct 2017 22:54:31 +0700 Subject: [PATCH] Fix test from #384 --- test/error.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/error.js b/test/error.js index 9a8d17c..b9d7ab0 100644 --- a/test/error.js +++ b/test/error.js @@ -50,7 +50,6 @@ test.serial('http.request error', async t => { throw new TypeError('The header content contains invalid characters'); }); const err = await t.throws(got(s.url)); - t.truthy(err instanceof TypeError); t.regex(err.message, /The header content contains invalid characters/); stub.restore(); });