Dmitry Yv
5 years ago
committed by
Luke Childs
3 changed files with 21 additions and 0 deletions
@ -0,0 +1,4 @@ |
|||||
|
'use strict'; |
||||
|
const browserEnv = require('.'); |
||||
|
|
||||
|
browserEnv(); |
@ -0,0 +1,11 @@ |
|||||
|
import { spawnSync } from 'child_process'; |
||||
|
import test from 'ava'; |
||||
|
|
||||
|
test(t => { |
||||
|
const { stdout } = spawnSync('node', [ |
||||
|
'-r', '../register', |
||||
|
'--eval', 'console.log(typeof window)' |
||||
|
]); |
||||
|
|
||||
|
t.not(stdout.toString(), 'undefined'); |
||||
|
}); |
Loading…
Reference in new issue