Update test.ts

This commit is contained in:
Sindre Sorhus 2018-07-10 15:58:46 +07:00 committed by GitHub
parent 6d79aa71bc
commit a903469706
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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