Luke Childs
8 years ago
11 changed files with 68 additions and 65 deletions
@ -1,10 +1,10 @@ |
|||
import test from 'ava'; |
|||
import expectedProperties from './fixtures/expectedProperties'; |
|||
import browserEnv from '../src'; |
|||
import expectedProperties from './fixtures/expectedProperties'; |
|||
|
|||
test(t => { |
|||
browserEnv(); |
|||
const properties = Object.getOwnPropertyNames(window); |
|||
t.is(properties.length, expectedProperties.length); |
|||
properties.forEach(prop => t.true(expectedProperties.indexOf(prop) > -1)); |
|||
browserEnv(); |
|||
const properties = Object.getOwnPropertyNames(window); |
|||
t.is(properties.length, expectedProperties.length); |
|||
properties.forEach(prop => t.true(expectedProperties.indexOf(prop) > -1)); |
|||
}); |
|||
|
Loading…
Reference in new issue