Update test.ts

This commit is contained in:
Sindre Sorhus 2018-12-07 12:52:14 +07:00 committed by GitHub
parent 1ecd9367b2
commit a7d3b376d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -576,7 +576,7 @@ test('is.directInstanceOf', t => {
});
test('is.urlInstance', t => {
const url = new URL('https://www.example.com');
const url = new URL('https://example.com');
t.true(is.urlInstance(url));
t.false(is.urlInstance({}));
t.false(is.urlInstance(undefined));
@ -584,7 +584,7 @@ test('is.urlInstance', t => {
});
test('is.url', t => {
const url = 'https://www.example.com';
const url = 'https://example.com';
t.true(is.url(url));
t.false(is.url(new URL(url)));
t.false(is.url({}));