diff --git a/package.json b/package.json index 4003fc31262..52b6f977f8b 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "dependencies": {}, "devDependencies": { "chai": "^3.5.0", + "jsdom": "11.11.0", "leche": "^2.2.3", "mocha": "^3.5.3", "mocha-jsdom": "^2.0.0", diff --git a/tests/js/tests/yii.activeForm.test.js b/tests/js/tests/yii.activeForm.test.js index 5be84df9d7d..65a564941a4 100644 --- a/tests/js/tests/yii.activeForm.test.js +++ b/tests/js/tests/yii.activeForm.test.js @@ -33,7 +33,6 @@ describe('yii.activeForm', function () { var html = '' + activeFormHtml + ''; jsdom({ - url: 'http://localhost', html: html, src: fs.readFileSync(jQueryPath, 'utf-8') }); diff --git a/tests/js/tests/yii.captcha.test.js b/tests/js/tests/yii.captcha.test.js index c63b654db1a..9fdd1d1d95f 100644 --- a/tests/js/tests/yii.captcha.test.js +++ b/tests/js/tests/yii.captcha.test.js @@ -29,7 +29,6 @@ describe('yii.captcha', function () { var html = '' + imgHtml + ''; jsdom({ - url: 'http://localhost', html: html, src: fs.readFileSync(jQueryPath, 'utf-8') }); diff --git a/tests/js/tests/yii.gridView.test.js b/tests/js/tests/yii.gridView.test.js index 1c0e1b59070..6b60054493b 100644 --- a/tests/js/tests/yii.gridView.test.js +++ b/tests/js/tests/yii.gridView.test.js @@ -50,7 +50,6 @@ describe('yii.gridView', function () { var html = '' + gridViewHtml + ''; jsdom({ - url: 'http://localhost', html: html, src: fs.readFileSync(jQueryPath, 'utf-8') }); diff --git a/tests/js/tests/yii.test.js b/tests/js/tests/yii.test.js index 0260fa7c413..60d3059a50a 100644 --- a/tests/js/tests/yii.test.js +++ b/tests/js/tests/yii.test.js @@ -73,7 +73,6 @@ describe('yii', function () { } jsdom({ - url: 'http://localhost', html: fs.readFileSync('tests/js/data/yii.html', 'utf-8'), src: fs.readFileSync(jQueryPath, 'utf-8') }); diff --git a/tests/js/tests/yii.validation.test.js b/tests/js/tests/yii.validation.test.js index fc9f5e6afb4..ea8ffb36510 100644 --- a/tests/js/tests/yii.validation.test.js +++ b/tests/js/tests/yii.validation.test.js @@ -76,7 +76,6 @@ describe('yii.validation', function () { } jsdom({ - url: 'http://localhost', src: fs.readFileSync('vendor/bower-asset/jquery/dist/jquery.js', 'utf-8') });