2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

tests: switch to strictEqual/notStrictEqual

This commit is contained in:
XhmikosR
2020-05-08 16:36:20 +03:00
parent 195585f5a6
commit 5f79b75ea8
5 changed files with 27 additions and 27 deletions
+4 -4
View File
@@ -157,9 +157,9 @@ $(function () {
mode: 'open'
})
assert.equal(shadowRoot, Util.findShadowRoot(shadowRoot))
assert.strictEqual(shadowRoot, Util.findShadowRoot(shadowRoot))
shadowRoot.innerHTML = '<button>Shadow Button</button>'
assert.equal(shadowRoot, Util.findShadowRoot(shadowRoot.firstChild))
assert.strictEqual(shadowRoot, Util.findShadowRoot(shadowRoot.firstChild))
})
QUnit.test('Util.findShadowRoot should return null when attachShadow is not available', function (assert) {
@@ -167,7 +167,7 @@ $(function () {
var $div = $('<div id="test"></div>').appendTo($('#qunit-fixture'))
if (!document.documentElement.attachShadow) {
assert.equal(null, Util.findShadowRoot($div[0]))
assert.strictEqual(null, Util.findShadowRoot($div[0]))
} else {
var sandbox = sinon.createSandbox()
@@ -176,7 +176,7 @@ $(function () {
return $div
})
assert.equal(null, Util.findShadowRoot($div[0]))
assert.strictEqual(null, Util.findShadowRoot($div[0]))
sandbox.restore()
}
})