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>2020-05-06 09:20:08 +0300
committerGitHub <noreply@github.com>2020-05-06 09:20:08 +0300
commit967e6071bac797101daabe74c31cc3a5e6493fd4 (patch)
tree848f0ebdb90e65d78c002f7c00475ff8b393aee0 /js/tests/unit/button.spec.js
parent23aaee8c6f8c5cff58935f8484a1995dbffa4b45 (diff)
tests: streamline HTML end tags (#30648)
Diffstat (limited to 'js/tests/unit/button.spec.js')
-rw-r--r--js/tests/unit/button.spec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/tests/unit/button.spec.js b/js/tests/unit/button.spec.js
index a3c95be1ba..f7caf23f62 100644
--- a/js/tests/unit/button.spec.js
+++ b/js/tests/unit/button.spec.js
@@ -143,7 +143,7 @@ describe('Button', () => {
})
it('should add focus class on focus event', () => {
- fixtureEl.innerHTML = '<button class="btn" data-toggle="button"><input type="text" /></button>'
+ fixtureEl.innerHTML = '<button class="btn" data-toggle="button"><input type="text"></button>'
const btn = fixtureEl.querySelector('.btn')
const input = fixtureEl.querySelector('input')
@@ -155,7 +155,7 @@ describe('Button', () => {
})
it('should not add focus class', () => {
- fixtureEl.innerHTML = '<button data-toggle="button"><input type="text" /></button>'
+ fixtureEl.innerHTML = '<button data-toggle="button"><input type="text"></button>'
const btn = fixtureEl.querySelector('button')
const input = fixtureEl.querySelector('input')
@@ -167,7 +167,7 @@ describe('Button', () => {
})
it('should remove focus class on blur event', () => {
- fixtureEl.innerHTML = '<button class="btn focus" data-toggle="button"><input type="text" /></button>'
+ fixtureEl.innerHTML = '<button class="btn focus" data-toggle="button"><input type="text"></button>'
const btn = fixtureEl.querySelector('.btn')
const input = fixtureEl.querySelector('input')
@@ -179,7 +179,7 @@ describe('Button', () => {
})
it('should not remove focus class on blur event', () => {
- fixtureEl.innerHTML = '<button class="focus" data-toggle="button"><input type="text" /></button>'
+ fixtureEl.innerHTML = '<button class="focus" data-toggle="button"><input type="text"></button>'
const btn = fixtureEl.querySelector('button')
const input = fixtureEl.querySelector('input')
@@ -211,7 +211,7 @@ describe('Button', () => {
fixtureEl.innerHTML = [
'<div class="btn-group disabled" data-toggle="buttons" aria-disabled="true" disabled>',
' <label class="btn btn-danger disabled" aria-disabled="true" disabled>',
- ' <input type="checkbox" aria-disabled="true" autocomplete="off" disabled class="disabled"/>',
+ ' <input type="checkbox" aria-disabled="true" autocomplete="off" disabled class="disabled">',
' </label>',
'</div>'
].join('')