From 4febcb4b492c322c71bdef579cc4ad99ea86e150 Mon Sep 17 00:00:00 2001 From: Kevin Kirsche Date: Sun, 1 Mar 2015 09:33:48 -0500 Subject: [Fixes #15953] Implement assert.expect in each unit test [Fixes #15953] Implement `assert.expect` in each unit test --- js/tests/unit/dropdown.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'js/tests/unit/dropdown.js') diff --git a/js/tests/unit/dropdown.js b/js/tests/unit/dropdown.js index 0a425200a..a0c0c9fef 100644 --- a/js/tests/unit/dropdown.js +++ b/js/tests/unit/dropdown.js @@ -4,6 +4,7 @@ $(function () { QUnit.module('dropdowns plugin') QUnit.test('should be defined on jquery object', function (assert) { + assert.expect(1) assert.ok($(document.body).dropdown, 'dropdown method is defined') }) @@ -19,10 +20,12 @@ $(function () { }) QUnit.test('should provide no conflict', function (assert) { + assert.expect(1) assert.strictEqual($.fn.dropdown, undefined, 'dropdown was set back to undefined (org value)') }) QUnit.test('should return jquery collection containing the element', function (assert) { + assert.expect(2) var $el = $('
') var $dropdown = $el.bootstrapDropdown() assert.ok($dropdown instanceof $, 'returns jquery collection') @@ -30,6 +33,7 @@ $(function () { }) QUnit.test('should not open dropdown if target is disabled via attribute', function (assert) { + assert.expect(1) var dropdownHTML = '