Skip to content

Commit d187947

Browse files
author
nfrasser
committed
Dowgrading to jsdom 6.0
Supports both iojs and the latest Node
1 parent d8c75d3 commit d187947

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"gulp-replace": "^0.5.4",
4747
"gulp-uglify": "^1.4.2",
4848
"gulp-wrap": "^0.11.0",
49-
"jsdom": "^7.0.2",
49+
"jsdom": "^6.5.1",
5050
"jshint-stylish": "^2.0.1",
5151
"karma": "^0.13.15",
5252
"karma-browserify": "^4.4.0",

test/spec/linkify-element-test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ try {
1010
doc = null;
1111
}
1212

13+
jsdom = doc ? null : require('jsdom');
14+
1315
describe('linkify-element', function () {
1416

1517
/**
@@ -31,9 +33,6 @@ describe('linkify-element', function () {
3133
return onDoc(doc);
3234
}
3335

34-
// no document element, use a virtual dom to test
35-
jsdom = require('jsdom');
36-
3736
jsdom.env(
3837
'<html><head><title>Linkify Test</title></head><body></body></html>',
3938
function (errors, window) {

0 commit comments

Comments
 (0)