mirror of
https://github.com/sstent/aicyclingcoach-go.git
synced 2026-01-27 17:42:23 +00:00
sync
This commit is contained in:
22
node_modules/jsdom-global/test.js
generated
vendored
22
node_modules/jsdom-global/test.js
generated
vendored
@@ -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()
|
||||
})
|
||||
Reference in New Issue
Block a user