From fb42d6e0435bb101c0505090055e8034cb101dc4 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Wed, 29 Mar 2017 00:10:27 +0200 Subject: Collapse - Fix check to not prevent event for input and textarea --- js/tests/unit/collapse.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js/tests') diff --git a/js/tests/unit/collapse.js b/js/tests/unit/collapse.js index 01bc5adb9..e7083f56d 100644 --- a/js/tests/unit/collapse.js +++ b/js/tests/unit/collapse.js @@ -515,13 +515,14 @@ $(function () { }) QUnit.test('should not prevent event for input', function (assert) { - assert.expect(2) + assert.expect(3) var done = assert.async() var $target = $('').appendTo('#qunit-fixture') $('
') .appendTo('#qunit-fixture') .on('shown.bs.collapse', function () { + assert.ok($(this).hasClass('show')) assert.ok($target.attr('aria-expanded') === 'true') assert.ok($target.prop('checked')) done() -- cgit v1.2.3