diff options
| author | XhmikosR <[email protected]> | 2017-07-27 13:39:55 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2017-08-23 00:05:38 +0300 |
| commit | ef8c77d8dcebd13559a141e419d003c2d10cc5f3 (patch) | |
| tree | fa0efba9d60de5570eeac2b7ae0262916d64401d /js/tests/unit/carousel.js | |
| parent | 0492c3a4cd0aed19f46c5472a54ee8700c1a328e (diff) | |
| download | bootstrap-ef8c77d8dcebd13559a141e419d003c2d10cc5f3.tar.xz bootstrap-ef8c77d8dcebd13559a141e419d003c2d10cc5f3.zip | |
Tweak ESLint rules.
Diffstat (limited to 'js/tests/unit/carousel.js')
| -rw-r--r-- | js/tests/unit/carousel.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/tests/unit/carousel.js b/js/tests/unit/carousel.js index b110fbd65..521b24ca4 100644 --- a/js/tests/unit/carousel.js +++ b/js/tests/unit/carousel.js @@ -21,7 +21,7 @@ $(function () { QUnit.test('should provide no conflict', function (assert) { assert.expect(1) - assert.strictEqual($.fn.carousel, undefined, 'carousel was set back to undefined (orig value)') + assert.strictEqual(typeof $.fn.carousel, 'undefined', 'carousel was set back to undefined (orig value)') }) QUnit.test('should throw explicit error on undefined method', function (assert) { @@ -371,14 +371,14 @@ $(function () { var done = assert.async() $(template) .on('slid.bs.carousel', function (e) { - assert.ok(e.from !== undefined, 'from present') - assert.ok(e.to !== undefined, 'to present') + assert.ok(typeof e.from !== 'undefined', 'from present') + assert.ok(typeof e.to !== 'undefined', 'to present') $(this).off() done() }) .on('slide.bs.carousel', function (e) { - assert.ok(e.from !== undefined, 'from present') - assert.ok(e.to !== undefined, 'to present') + assert.ok(typeof e.from !== 'undefined', 'from present') + assert.ok(typeof e.to !== 'undefined', 'to present') $(this).off('slide.bs.carousel') }) .bootstrapCarousel('next') |
