Browse Source

Test Window is a class

pull/2/head
Luke Childs 8 years ago
parent
commit
6a2c2c0c39
  1. 8
      test/types.js

8
test/types.js

@ -1,6 +1,8 @@
/* eslint new-cap: ["error", { "capIsNew": false }] */
import test from 'ava';
import window from '../';
import Window from '../';
test('mergeImages is a function', t => {
t.is(typeof window, 'function');
test('Window is a class', t => {
t.throws(() => Window());
t.notThrows(() => new Window());
});

Loading…
Cancel
Save