Luke Childs
8 years ago
1 changed files with 9 additions and 0 deletions
@ -0,0 +1,9 @@ |
|||||
|
import test from 'ava'; |
||||
|
|
||||
|
// We have to require() here as imports have to be top level so we can't set
|
||||
|
// globals first
|
||||
|
test(t => { |
||||
|
global.document = false; |
||||
|
require('../dist')(); |
||||
|
t.is(document, false); |
||||
|
}); |
Loading…
Reference in new issue