Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2021-12-09 17:01:29 +0300
committerGitHub <noreply@github.com>2021-12-09 17:01:29 +0300
commit94d4fa3b100352cba4c03b23b229e137d520a13a (patch)
treee5bdb442dc900b7b3004ccfe228a321296230ab7 /js/tests/unit/dom
parent28a5a72ed56df3cc5efb1d5164376c9c9541e4f0 (diff)
Fix tests fixture type (#35501)
Previously we were adding an Array instead of a String
Diffstat (limited to 'js/tests/unit/dom')
-rw-r--r--js/tests/unit/dom/event-handler.spec.js2
-rw-r--r--js/tests/unit/dom/selector-engine.spec.js28
2 files changed, 17 insertions, 13 deletions
diff --git a/js/tests/unit/dom/event-handler.spec.js b/js/tests/unit/dom/event-handler.spec.js
index 4772d892e8..601af7409e 100644
--- a/js/tests/unit/dom/event-handler.spec.js
+++ b/js/tests/unit/dom/event-handler.spec.js
@@ -86,7 +86,7 @@ describe('EventHandler', () => {
'</div>',
'<div class="sibling"></div>',
'</div>'
- ]
+ ].join('')
const outer = fixtureEl.querySelector('.outer')
const inner = fixtureEl.querySelector('.inner')
diff --git a/js/tests/unit/dom/selector-engine.spec.js b/js/tests/unit/dom/selector-engine.spec.js
index 005e92704c..38eb3be54d 100644
--- a/js/tests/unit/dom/selector-engine.spec.js
+++ b/js/tests/unit/dom/selector-engine.spec.js
@@ -30,13 +30,15 @@ describe('SelectorEngine', () => {
})
it('should handle :scope selectors', () => {
- fixtureEl.innerHTML = `<ul>
- <li></li>
- <li>
- <a href="#" class="active">link</a>
- </li>
- <li></li>
- </ul>`
+ fixtureEl.innerHTML = [
+ '<ul>',
+ ' <li></li>',
+ ' <li>',
+ ' <a href="#" class="active">link</a>',
+ ' </li>',
+ ' <li></li>',
+ '</ul>'
+ ].join('')
const listEl = fixtureEl.querySelector('ul')
const aActive = fixtureEl.querySelector('.active')
@@ -57,11 +59,13 @@ describe('SelectorEngine', () => {
describe('children', () => {
it('should find children', () => {
- fixtureEl.innerHTML = `<ul>
- <li></li>
- <li></li>
- <li></li>
- </ul>`
+ fixtureEl.innerHTML = [
+ '<ul>',
+ ' <li></li>',
+ ' <li></li>',
+ ' <li></li>',
+ '</ul>'
+ ].join('')
const list = fixtureEl.querySelector('ul')
const liList = [].concat(...fixtureEl.querySelectorAll('li'))