aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/collapse.js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-02-23 22:41:08 -0800
committerChris Rebert <[email protected]>2015-02-23 22:43:17 -0800
commit9c75c855c6bba0e9ef9facc7c948612cd0c2a855 (patch)
tree6c9e9a7cb2897a684b38cd4e69193d4286564563 /js/tests/unit/collapse.js
parent118b8c2695d026f1cad6cffc177d9672d9903ce9 (diff)
downloadbootstrap-9c75c855c6bba0e9ef9facc7c948612cd0c2a855.tar.xz
bootstrap-9c75c855c6bba0e9ef9facc7c948612cd0c2a855.zip
JS unit tests: equal() => strictEqual()
[skip validator]
Diffstat (limited to 'js/tests/unit/collapse.js')
-rw-r--r--js/tests/unit/collapse.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/tests/unit/collapse.js b/js/tests/unit/collapse.js
index 22ae827ce..1616fe48b 100644
--- a/js/tests/unit/collapse.js
+++ b/js/tests/unit/collapse.js
@@ -63,7 +63,7 @@ $(function () {
$('<div class="collapse" style="height: 0px"/>')
.on('show.bs.collapse', function () {
- assert.equal(this.style.height, '0px', 'height is 0px')
+ assert.strictEqual(this.style.height, '0px', 'height is 0px')
})
.on('shown.bs.collapse', function () {
assert.strictEqual(this.style.height, '', 'height is auto')
@@ -208,7 +208,7 @@ $(function () {
$('<div id="test1"/>')
.appendTo('#qunit-fixture')
.on('shown.bs.collapse', function () {
- assert.equal($target.attr('aria-expanded'), 'true', 'aria-expanded on target is "true"')
+ assert.strictEqual($target.attr('aria-expanded'), 'true', 'aria-expanded on target is "true"')
done()
})
@@ -223,7 +223,7 @@ $(function () {
$('<div id="test1" class="in"/>')
.appendTo('#qunit-fixture')
.on('hidden.bs.collapse', function () {
- assert.equal($target.attr('aria-expanded'), 'false', 'aria-expanded on target is "false"')
+ assert.strictEqual($target.attr('aria-expanded'), 'false', 'aria-expanded on target is "false"')
done()
})
@@ -253,9 +253,9 @@ $(function () {
$('<div id="body3" aria-expanded="false"/>')
.appendTo($groups.eq(2))
.on('shown.bs.collapse', function () {
- assert.equal($target1.attr('aria-expanded'), 'false', 'inactive target 1 has aria-expanded="false"')
- assert.equal($target2.attr('aria-expanded'), 'false', 'inactive target 2 has aria-expanded="false"')
- assert.equal($target3.attr('aria-expanded'), 'true', 'active target 3 has aria-expanded="false"')
+ assert.strictEqual($target1.attr('aria-expanded'), 'false', 'inactive target 1 has aria-expanded="false"')
+ assert.strictEqual($target2.attr('aria-expanded'), 'false', 'inactive target 2 has aria-expanded="false"')
+ assert.strictEqual($target3.attr('aria-expanded'), 'true', 'active target 3 has aria-expanded="false"')
done()
})