From 85f8709f14bdcb07a0936bc8befc1f5bd9569abd Mon Sep 17 00:00:00 2001 From: Dmitry Naumenko Date: Wed, 4 Oct 2017 18:11:54 +0300 Subject: [PATCH] Fixed test --- tests/js/tests/yii.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/js/tests/yii.test.js b/tests/js/tests/yii.test.js index 5197d09..5c4c1b0 100644 --- a/tests/js/tests/yii.test.js +++ b/tests/js/tests/yii.test.js @@ -328,7 +328,7 @@ describe('yii', function () { // container needs to be checked separately if (typeof pjaxOptions.container === 'string') { - assert.equal(pjaxOptions.container, pjaxContainerId ? ('#' + pjaxContainerId) : 'body'); + assert.equal(pjaxOptions.container, pjaxContainerId || 'body'); } else { assert.instanceOf(pjaxOptions.container, $); assert.equal(pjaxOptions.container.attr('id'), pjaxContainerId || 'body'); @@ -498,7 +498,7 @@ describe('yii', function () { 'link, data-pjax="1"': ['.link-pjax-1', 'body'], 'link, data-pjax="true"': ['.link-pjax-true', 'body'], 'link, data-pjax, outside a container': [ - '.link-pjax-outside-container', 'pjax-separate-container' + '.link-pjax-outside-container', '#pjax-separate-container' ], 'link href, data-pjax, inside a container': ['.link-pjax-inside-container', 'pjax-container-2'] }, function (elementSelector, expectedPjaxContainerId) {