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

@@ -197,9 +197,7 @@ describe('SelectorEngine', () => {
})
it('should return not return elements with negative tab index', () => {
fixtureEl.innerHTML = [
'<button tabindex="-1">lorem</button>'
].join('')
fixtureEl.innerHTML = '<button tabindex="-1">lorem</button>'
const expectedElements = []
@@ -207,9 +205,7 @@ describe('SelectorEngine', () => {
})
it('should return contenteditable elements', () => {
fixtureEl.innerHTML = [
'<div contenteditable="true">lorem</div>'
].join('')
fixtureEl.innerHTML = '<div contenteditable="true">lorem</div>'
const expectedElements = [fixtureEl.querySelector('[contenteditable="true"]')]
@@ -217,9 +213,7 @@ describe('SelectorEngine', () => {
})
it('should not return disabled elements', () => {
fixtureEl.innerHTML = [
'<button disabled="true">lorem</button>'
].join('')
fixtureEl.innerHTML = '<button disabled="true">lorem</button>'
const expectedElements = []
@@ -227,9 +221,7 @@ describe('SelectorEngine', () => {
})
it('should not return invisible elements', () => {
fixtureEl.innerHTML = [
'<button style="display:none;">lorem</button>'
].join('')
fixtureEl.innerHTML = '<button style="display:none;">lorem</button>'
const expectedElements = []