UNPKG
mocha-jsdom
Version:
latest (2.0.0)
2.0.0
1.2.0
1.1.0
1.0.0
0.5.0
0.4.0
0.3.0
0.2.1
0.2.0
0.1.1
0.1.0
Simple integration of jsdom into mocha tests
github.com/rstacruz/mocha-jsdom
rstacruz/mocha-jsdom
mocha-jsdom
/
test
/
globalize.js
13 lines
(9 loc)
•
294 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/* global describe, it, expect */
/* jshint expr: true */
var
jsdom =
require
(
'../index'
)
describe
(
'globalize'
,
function
(
) {
jsdom
({
globalize
:
false
})
it
(
'does not globalize'
,
function
(
) {
expect
(
global
.
document
).
be
.
undefined
// eslint-disable-line no-unused-expressions
}) })