Skip to content

Commit

Permalink
ref(tests): Minor fix to use self-closing input HTML tag (#36667)
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Jul 4, 2022
1 parent a13f432 commit c1813ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/tests/unit/dom/selector-engine.spec.js
Expand Up @@ -166,7 +166,7 @@ describe('SelectorEngine', () => {
'<span>lorem</span>',
'<a>lorem</a>',
'<button>lorem</button>',
'<input />',
'<input>',
'<textarea></textarea>',
'<select></select>',
'<details>lorem</details>'
Expand Down
2 changes: 1 addition & 1 deletion js/tests/unit/offcanvas.spec.js
Expand Up @@ -603,7 +603,7 @@ describe('Offcanvas', () => {
it('should not prevent event for input', () => {
return new Promise(resolve => {
fixtureEl.innerHTML = [
'<input type="checkbox" data-bs-toggle="offcanvas" data-bs-target="#offcanvasdiv1" />',
'<input type="checkbox" data-bs-toggle="offcanvas" data-bs-target="#offcanvasdiv1">',
'<div id="offcanvasdiv1" class="offcanvas"></div>'
].join('')

Expand Down
6 changes: 3 additions & 3 deletions js/tests/unit/util/index.spec.js
Expand Up @@ -425,8 +425,8 @@ describe('Util', () => {
it('should return true if the element has disabled attribute', () => {
fixtureEl.innerHTML = [
'<div>',
' <input id="input" disabled="disabled"/>',
' <input id="input1" disabled="disabled"/>',
' <input id="input" disabled="disabled">',
' <input id="input1" disabled="disabled">',
' <button id="button" disabled="true"></button>',
' <button id="button1" disabled="disabled"></button>',
' <button id="button2" disabled></button>',
Expand Down Expand Up @@ -460,7 +460,7 @@ describe('Util', () => {
it('should return true if the element has class "disabled" but disabled attribute is false', () => {
fixtureEl.innerHTML = [
'<div>',
' <input id="input" class="disabled" disabled="false"/>',
' <input id="input" class="disabled" disabled="false">',
'</div>'
].join('')

Expand Down

0 comments on commit c1813ef

Please sign in to comment.