1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-16 18:44:01 +02:00

Fix tests fixture type (#35501)

Previously we were adding an Array instead of a String
This commit is contained in:
XhmikosR
2021-12-09 16:01:29 +02:00
committed by GitHub
parent 28a5a72ed5
commit 94d4fa3b10
5 changed files with 32 additions and 30 deletions

View File

@@ -171,11 +171,10 @@ describe('Util', () => {
describe('isElement', () => {
it('should detect if the parameter is an element or not and return Boolean', () => {
fixtureEl.innerHTML =
[
'<div id="foo" class="test"></div>',
'<div id="bar" class="test"></div>'
].join('')
fixtureEl.innerHTML = [
'<div id="foo" class="test"></div>',
'<div id="bar" class="test"></div>'
].join('')
const el = fixtureEl.querySelector('#foo')
@@ -199,11 +198,10 @@ describe('Util', () => {
describe('getElement', () => {
it('should try to parse element', () => {
fixtureEl.innerHTML =
[
'<div id="foo" class="test"></div>',
'<div id="bar" class="test"></div>'
].join('')
fixtureEl.innerHTML = [
'<div id="foo" class="test"></div>',
'<div id="bar" class="test"></div>'
].join('')
const el = fixtureEl.querySelector('div')