Browse Source

Simplify URL argument test (#296)

extract-response
Alexander Tesfamichael 8 years ago
committed by Sindre Sorhus
parent
commit
21c5c78da7
  1. 8
      test/arguments.js

8
test/arguments.js

@ -24,12 +24,8 @@ test.before('setup', async () => {
}); });
test('url is required', async t => { test('url is required', async t => {
try { const err = await t.throws(got());
await got(); t.regex(err.message, /Parameter `url` must be a string or object, not undefined/);
t.fail('Exception was not thrown');
} catch (err) {
t.regex(err.message, /Parameter `url` must be a string or object, not undefined/);
}
}); });
test('options are optional', async t => { test('options are optional', async t => {

Loading…
Cancel
Save