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:
@@ -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')
|
||||
|
||||
|
Reference in New Issue
Block a user