aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/modal.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2017-07-27 13:39:55 +0300
committerXhmikosR <[email protected]>2017-08-23 00:05:38 +0300
commitef8c77d8dcebd13559a141e419d003c2d10cc5f3 (patch)
treefa0efba9d60de5570eeac2b7ae0262916d64401d /js/tests/unit/modal.js
parent0492c3a4cd0aed19f46c5472a54ee8700c1a328e (diff)
downloadbootstrap-ef8c77d8dcebd13559a141e419d003c2d10cc5f3.tar.xz
bootstrap-ef8c77d8dcebd13559a141e419d003c2d10cc5f3.zip
Tweak ESLint rules.
Diffstat (limited to 'js/tests/unit/modal.js')
-rw-r--r--js/tests/unit/modal.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js
index fc6c4f38c..09c352443 100644
--- a/js/tests/unit/modal.js
+++ b/js/tests/unit/modal.js
@@ -34,7 +34,7 @@ $(function () {
QUnit.test('should provide no conflict', function (assert) {
assert.expect(1)
- assert.strictEqual($.fn.modal, undefined, 'modal was set back to undefined (orig value)')
+ assert.strictEqual(typeof $.fn.modal, 'undefined', 'modal was set back to undefined (orig value)')
})
QUnit.test('should throw explicit error on undefined method', function (assert) {
@@ -380,7 +380,7 @@ $(function () {
$('<div id="modal-test"/>')
.on('hidden.bs.modal', function () {
- assert.strictEqual($body.data('padding-right'), undefined, 'data-padding-right should be cleared after closing')
+ assert.strictEqual(typeof $body.data('padding-right'), 'undefined', 'data-padding-right should be cleared after closing')
$body.removeAttr('style')
done()
})
@@ -422,7 +422,7 @@ $(function () {
$('<div id="modal-test"/>')
.on('hidden.bs.modal', function () {
- assert.strictEqual($element.data('padding-right'), undefined, 'data-padding-right should be cleared after closing')
+ assert.strictEqual(typeof $element.data('padding-right'), 'undefined', 'data-padding-right should be cleared after closing')
$element.remove()
done()
})
@@ -464,7 +464,7 @@ $(function () {
$('<div id="modal-test"/>')
.on('hidden.bs.modal', function () {
- assert.strictEqual($element.data('margin-right'), undefined, 'data-margin-right should be cleared after closing')
+ assert.strictEqual(typeof $element.data('margin-right'), 'undefined', 'data-margin-right should be cleared after closing')
$element.remove()
done()
})