diff options
| author | XhmikosR <[email protected]> | 2020-05-06 09:20:08 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-06 09:20:08 +0300 |
| commit | 967e6071bac797101daabe74c31cc3a5e6493fd4 (patch) | |
| tree | 848f0ebdb90e65d78c002f7c00475ff8b393aee0 /js/tests/unit/button.spec.js | |
| parent | 23aaee8c6f8c5cff58935f8484a1995dbffa4b45 (diff) | |
| download | bootstrap-967e6071bac797101daabe74c31cc3a5e6493fd4.tar.xz bootstrap-967e6071bac797101daabe74c31cc3a5e6493fd4.zip | |
tests: streamline HTML end tags (#30648)
Diffstat (limited to 'js/tests/unit/button.spec.js')
| -rw-r--r-- | js/tests/unit/button.spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/tests/unit/button.spec.js b/js/tests/unit/button.spec.js index a3c95be1b..f7caf23f6 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('') |
