2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

JS unit tests: equal() => strictEqual()

[skip validator]
This commit is contained in:
Chris Rebert
2015-02-23 22:41:08 -08:00
parent 118b8c2695
commit 9c75c855c6
7 changed files with 90 additions and 90 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ $(function () {
$alert.find('.close').click()
assert.equal($alert.hasClass('in'), false, 'remove .in class on .close click')
assert.strictEqual($alert.hasClass('in'), false, 'remove .in class on .close click')
})
QUnit.test('should remove element when clicking .close', function (assert) {
@@ -52,7 +52,7 @@ $(function () {
$alert.find('.close').click()
assert.equal($('#qunit-fixture').find('.alert').length, 0, 'element removed from dom')
assert.strictEqual($('#qunit-fixture').find('.alert').length, 0, 'element removed from dom')
})
QUnit.test('should not fire closed when close is prevented', function (assert) {