Skip to content

Commit

Permalink
Fixed JS tests (#16695)
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Sep 8, 2018
1 parent 97bd723 commit dad0938
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion tests/js/tests/yii.activeForm.test.js
Expand Up @@ -33,7 +33,6 @@ describe('yii.activeForm', function () {
var html = '<!doctype html><html><head><meta charset="utf-8"></head><body>' + activeFormHtml + '</body></html>';

jsdom({
url: 'http://localhost',
html: html,
src: fs.readFileSync(jQueryPath, 'utf-8')
});
Expand Down
1 change: 0 additions & 1 deletion tests/js/tests/yii.captcha.test.js
Expand Up @@ -29,7 +29,6 @@ describe('yii.captcha', function () {
var html = '<!doctype html><html><head><meta charset="utf-8"></head><body>' + imgHtml + '</body></html>';

jsdom({
url: 'http://localhost',
html: html,
src: fs.readFileSync(jQueryPath, 'utf-8')
});
Expand Down
1 change: 0 additions & 1 deletion tests/js/tests/yii.gridView.test.js
Expand Up @@ -50,7 +50,6 @@ describe('yii.gridView', function () {
var html = '<!doctype html><html><head><meta charset="utf-8"></head><body>' + gridViewHtml + '</body></html>';

jsdom({
url: 'http://localhost',
html: html,
src: fs.readFileSync(jQueryPath, 'utf-8')
});
Expand Down
1 change: 0 additions & 1 deletion tests/js/tests/yii.test.js
Expand Up @@ -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')
});
Expand Down
1 change: 0 additions & 1 deletion tests/js/tests/yii.validation.test.js
Expand Up @@ -76,7 +76,6 @@ describe('yii.validation', function () {
}

jsdom({
url: 'http://localhost',
src: fs.readFileSync('vendor/bower-asset/jquery/dist/jquery.js', 'utf-8')
});

Expand Down

0 comments on commit dad0938

Please sign in to comment.