Browse Source

Test jsdom config is passed through

pull/2/head
Luke Childs 8 years ago
parent
commit
6d99e9d4bf
  1. 9
      test/unit.js

9
test/unit.js

@ -0,0 +1,9 @@
/* eslint new-cap: ["error", { "capIsNew": false }] */
import test from 'ava';
import Window from '../';
test('jsdom config is passed through', t => {
const userAgent = 'Custom user agent';
const window = new Window({ userAgent });
t.is(window.navigator.userAgent, userAgent);
});
Loading…
Cancel
Save