zz_

test.js

thoward37@gmail.com/push-test-1791933020200 / test.js @ 3ced6417 Download
 import test from 'ava';
 import uniqueString from 'unique-string';
-import isUp from '.';
+import isUp from './index.js';
 
 test('up', async t => {
  t.true(await isUp('https://google.com'));
 });
 
 test('down', async t => {
  t.false(await isUp(`https://foobar${uniqueString()}.com`));
 });
 
 test('invalid domain', async t => {
- await t.throwsAsync(isUp('unicorn'), 'Invalid URL: unicorn');
+ await t.throwsAsync(isUp('unicorn'), {message: 'Invalid URL'});
 });