Skip to content

Commit

Permalink
Merge pull request #346 from fabiomcosta/fix_jsdom_newer
Browse files Browse the repository at this point in the history
Fixes Jest tests when using it with newer versions of jsdom.
  • Loading branch information
DmitrySoshnikov committed May 5, 2015
2 parents 3010413 + 0b18a68 commit 98558bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/jsdom-compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ if (utilsId) {
};
}

var define = require('jsdom/lib/jsdom/level2/html').define;
var jsdom = require('jsdom');
var define = require('jsdom/lib/jsdom/level2/html').define;
var elements = jsdom.defaultLevel;

function _getTimeRangeDummy() {
Expand Down

0 comments on commit 98558bd

Please sign in to comment.