Browse Source

Add test for return value

pull/2/head
Luke Childs 9 years ago
parent
commit
ac89a12e85
  1. 5
      test/unit.js

5
test/unit.js

@ -12,3 +12,8 @@ test('Function should setup browser environment', t => {
t.not(typeof navigator, 'undefined');
t.not(typeof HTMLElement, 'undefined');
});
test('Function should return window instance', t => {
const returnValue = browserEnv();
t.is(returnValue, window);
});

Loading…
Cancel
Save