mirror of https://github.com/lukechilds/window.git
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
339 B
13 lines
339 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');
|
|
});
|
|
|