This commit is contained in:
2025-09-11 07:45:47 -07:00
parent 955946e79d
commit a9425720e9
2759 changed files with 0 additions and 294955 deletions

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

@@ -1,22 +0,0 @@
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()
})