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 => {
try {
await got();
t.fail('Exception was not thrown');
} catch (err) {
t.regex(err.message, /Parameter `url` must be a string or object, not undefined/);
}
const err = await t.throws(got());
t.regex(err.message, /Parameter `url` must be a string or object, not undefined/);
});
test('options are optional', async t => {

Loading…
Cancel
Save