diff --git a/test/arguments.js b/test/arguments.js index 332f3a0..b4bdc02 100644 --- a/test/arguments.js +++ b/test/arguments.js @@ -27,7 +27,7 @@ test.before('setup', async t => { test('url is required', async t => { try { await got(); - t.fail('Exception is not thrown'); + t.fail('Exception was not thrown'); } catch (err) { t.regexTest(/Parameter `url` must be a string or object, not undefined/, err.message); } @@ -55,7 +55,7 @@ test('overrides querystring from opts', async t => { test('should throw with auth in url', async t => { try { await got(`https://test:45d3ps453@account.myservice.com/api/token`); - t.fail('Exception is not thrown'); + t.fail('Exception was not thrown'); } catch (err) { t.regexTest(/Basic authentication must be done with auth option/, err.message); } diff --git a/test/helpers.js b/test/helpers.js index 0bac1ee..58bead5 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -32,14 +32,14 @@ test('promise mode', async t => { try { await got.get(`${s.url}/404`); - t.fail('Exception is not thrown'); + t.fail('Exception was not thrown'); } catch (err) { t.is(err.response.body, 'not found'); } try { await got.get('.com', {retries: 0}); - t.fail('Exception is not thrown'); + t.fail('Exception was not thrown'); } catch (err) { t.ok(err); }