mirror of https://github.com/lukechilds/window.git
Luke Childs
8 years ago
1 changed files with 9 additions and 0 deletions
@ -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…
Reference in new issue