Browse Source

Test new Window() returns a new window instance

pull/2/head
Luke Childs 8 years ago
parent
commit
9caf9fd892
  1. 5
      test/types.js

5
test/types.js

@ -6,3 +6,8 @@ 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');
});

Loading…
Cancel
Save