This commit is contained in:
lalBi94
2023-03-05 13:23:23 +01:00
commit 7bc56c09b5
14034 changed files with 1834369 additions and 0 deletions

22
node_modules/jsdom-global/test.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
var test = require('tape')
var jsdom
test('jsdom', function (t) {
jsdom = require('./index')()
t.end()
})
test('dom', function (t) {
var div = document.createElement('div')
div.innerHTML = 'hello'
document.body.appendChild(div)
t.equal(document.querySelector('body').innerHTML, '<div>hello</div>', 'dom works')
t.end()
})
test('cleanup', function (t) {
jsdom()
t.ok(typeof global.document === 'undefined', 'cleaned document')
t.ok(typeof global.alert === 'undefined', 'cleaned alert')
t.end()
})