Change import to require in tests /2

This commit is contained in:
Federico Brigante 2019-05-19 11:32:21 +08:00 committed by GitHub
parent d3fdab0bc0
commit c01788855d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,10 +7,11 @@ import test, {ExecutionContext} from 'ava';
import {JSDOM} from 'jsdom';
import {Subject, Observable} from 'rxjs';
import ZenObservable from 'zen-observable';
import is, {TypeName} = require('../source');
import is = require('../source');
// eslint-disable-next-line @typescript-eslint/no-require-imports
const URLGlobal = typeof URL === 'undefined' ? require('url').URL : URL;
const {TypeName} = is;
const isNode10orHigher = Number(process.versions.node.split('.')[0]) >= 10;