Skip to content

Commit 662a940

Browse files
committed
simulate needs a global document object, so provide it in tests
though it still fails with "document.createEventObject is not a function" which is nuts since that method hasn't been around since like IE9
1 parent bfb7924 commit 662a940

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
global.document = require('html-element').document;
12

23
var test = require('tape')
34
var h = require('../')

0 commit comments

Comments
 (0)