You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

13 lines
338 B

/* eslint new-cap: ["error", { "capIsNew": false }] */
import test from 'ava';
import Window from '..';
test('Window is a class', t => {
t.throws(() => Window());
t.notThrows(() => new Window());
});
test('new Window() returns a new window instance', t => {
const window = new Window();
t.is(window.constructor.name, 'Window');
});