skip_window_check.js
428 Bytes
/* global describe, it, before, after, expect */
/* jshint expr: true */
var jsdom = require('../index')
describe('skipWindowCheck: true', function () {
before(function () {
global.window = {}
})
after(function () {
delete global.window
})
jsdom({ skipWindowCheck: true })
it('does not throw errors', function () {
var div = document.createElement('div')
expect(div.nodeName).eql('DIV')
})
})