1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 00:54:04 +02:00

tests: remove extra spaces, unneeded arrays and add missing newlines

This commit is contained in:
XhmikosR
2021-11-26 09:16:59 +02:00
parent eb54e1a1ce
commit f8f9dc3b5c
18 changed files with 145 additions and 157 deletions

View File

@@ -416,13 +416,14 @@ describe('Tooltip', () => {
})
it('should show a tooltip when hovering a children element', done => {
fixtureEl.innerHTML =
'<a href="#" rel="tooltip" title="Another tooltip">' +
'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 100 100">' +
'<rect width="100%" fill="#563d7c"/>' +
'<circle cx="50" cy="50" r="30" fill="#fff"/>' +
'</svg>' +
fixtureEl.innerHTML = [
'<a href="#" rel="tooltip" title="Another tooltip">',
' <svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 100 100">',
' <rect width="100%" fill="#563d7c"/>',
' <circle cx="50" cy="50" r="30" fill="#fff"/>',
' </svg>',
'</a>'
].join('')
const tooltipEl = fixtureEl.querySelector('a')
const tooltip = new Tooltip(tooltipEl)
@@ -1201,7 +1202,7 @@ describe('Tooltip', () => {
const content = [
'<div id="childContent">',
' <button type="button">test btn</button>',
' <button type="button">test btn</button>',
'</div>'
].join('')