From 5c8d56d515da49b2051743fa0bacba79967778c2 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Fri, 6 Mar 2015 07:01:12 -0800 Subject: [PATCH] Collapse unit test: rm check that no-op hide adds style="height: 0px" Appears to be unnecessary and is broken by #16011, which is otherwise quite sane. --- js/tests/unit/collapse.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/tests/unit/collapse.js b/js/tests/unit/collapse.js index 40f586c2ec..8c01e57e86 100644 --- a/js/tests/unit/collapse.js +++ b/js/tests/unit/collapse.js @@ -41,11 +41,10 @@ $(function () { }) QUnit.test('should hide a collapsed element', function (assert) { - assert.expect(2) + assert.expect(1) var $el = $('
').bootstrapCollapse('hide') assert.ok(!$el.hasClass('in'), 'does not have class "in"') - assert.ok(/height/i.test($el.attr('style')), 'has height set') }) QUnit.test('should not fire shown when show is prevented', function (assert) { -- 2.47.2