Browse Source

Fix test from #384

no-retry
Sindre Sorhus 7 years ago
parent
commit
2bc2b90f9e
  1. 1
      test/error.js

1
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();
});

Loading…
Cancel
Save