Skip to content

Commit

Permalink
simulate needs a global document object, so provide it in tests
Browse files Browse the repository at this point in the history
though it still fails with "document.createEventObject is not a function"
which is nuts since that method hasn't been around since like IE9
  • Loading branch information
tdumitrescu committed Aug 24, 2016
1 parent bfb7924 commit 662a940
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
global.document = require('html-element').document;

var test = require('tape')
var h = require('../')
Expand Down

0 comments on commit 662a940

Please sign in to comment.