Change import to require in tests

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

View file

@ -7,7 +7,7 @@ import test, {ExecutionContext} from 'ava';
import {JSDOM} from 'jsdom';
import {Subject, Observable} from 'rxjs';
import ZenObservable from 'zen-observable';
import is, {TypeName} from '../source';
import is, {TypeName} = require('../source');
// eslint-disable-next-line @typescript-eslint/no-require-imports
const URLGlobal = typeof URL === 'undefined' ? require('url').URL : URL;