update npm dependencies
This commit is contained in:
18
package.json
18
package.json
@@ -19,17 +19,17 @@
|
||||
"homepage": "https://jasmine.github.io",
|
||||
"main": "./lib/jasmine-core.js",
|
||||
"devDependencies": {
|
||||
"glob": "~7.1.2",
|
||||
"grunt": "^1.0.1",
|
||||
"grunt-cli": "^1.2.0",
|
||||
"glob": "^7.1.3",
|
||||
"grunt": "^1.0.3",
|
||||
"grunt-cli": "^1.3.2",
|
||||
"grunt-contrib-compass": "^1.1.1",
|
||||
"grunt-contrib-compress": "^1.3.0",
|
||||
"grunt-contrib-concat": "^1.0.1",
|
||||
"grunt-contrib-jshint": "^1.0.0",
|
||||
"jasmine": "^3.0.0",
|
||||
"jsdom": "^9.12.0",
|
||||
"load-grunt-tasks": "^0.4.0",
|
||||
"shelljs": "^0.7.0",
|
||||
"temp": "~0.8.1"
|
||||
"grunt-contrib-jshint": "^2.0.0",
|
||||
"jasmine": "^3.3.1",
|
||||
"jsdom": "^13.1.0",
|
||||
"load-grunt-tasks": "^4.0.0",
|
||||
"shelljs": "^0.8.3",
|
||||
"temp": "^0.9.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -575,23 +575,15 @@ describe("toEqual", function() {
|
||||
return typeof document === 'undefined'
|
||||
}
|
||||
|
||||
beforeEach(function(done) {
|
||||
beforeEach(function() {
|
||||
this.nonBrowser = isNotRunningInBrowser();
|
||||
if (this.nonBrowser) {
|
||||
var jsdom = require('jsdom');
|
||||
var self = this;
|
||||
jsdom.env('', function(err, win) {
|
||||
if (err) {
|
||||
done.fail(err);
|
||||
} else {
|
||||
jasmineUnderTest.getGlobal().Node = win.Node;
|
||||
self.doc = win.document;
|
||||
done();
|
||||
}
|
||||
});
|
||||
var JSDOM = require('jsdom').JSDOM;
|
||||
var dom = new JSDOM();
|
||||
jasmineUnderTest.getGlobal().Node = dom.window.Node;
|
||||
this.doc = dom.window.document;
|
||||
} else {
|
||||
this.doc = document;
|
||||
done();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
describe('toHaveClass', function() {
|
||||
beforeEach(function(done) {
|
||||
beforeEach(function() {
|
||||
this.createElementWithClassName = function(className) {
|
||||
var el = this.doc.createElement('div');
|
||||
el.className = className;
|
||||
@@ -8,18 +8,10 @@ describe('toHaveClass', function() {
|
||||
|
||||
if (typeof document !== 'undefined') {
|
||||
this.doc = document;
|
||||
done();
|
||||
} else {
|
||||
var jsdom = require('jsdom');
|
||||
var self = this;
|
||||
jsdom.env('', function(err, win) {
|
||||
if (err) {
|
||||
done.fail(err);
|
||||
} else {
|
||||
self.doc = win.document;
|
||||
done();
|
||||
}
|
||||
});
|
||||
var JSDOM = require('jsdom').JSDOM;
|
||||
var dom = new JSDOM();
|
||||
this.doc = dom.window.document;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user