Fixed JS tests (#16695)

This commit is contained in:
Alexander Makarov
2018-09-09 00:16:39 +03:00
committed by GitHub
parent 97bd72374d
commit dad0938918
6 changed files with 1 additions and 5 deletions

View File

@ -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')
});

View File

@ -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')
});

View File

@ -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')
});

View File

@ -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')
});

View File

@ -76,7 +76,6 @@ describe('yii.validation', function () {
}
jsdom({
url: 'http://localhost',
src: fs.readFileSync('vendor/bower-asset/jquery/dist/jquery.js', 'utf-8')
});