Skip to content

Commit 0c1daaf

Browse files
committed
Remove broken/vestigial unit test
Overall logic for this test appears broken, possibly relating to an older version of Bootstrap that did not require explicit `data-toggle="button"` on single toggle buttons?
1 parent f9cd88e commit 0c1daaf

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

js/tests/unit/button.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,6 @@ $(function () {
130130
assert.strictEqual($btn.attr('aria-pressed'), 'true', 'btn aria-pressed state is true')
131131
})
132132

133-
QUnit.test('should toggle active when btn children are clicked within btn-group', function (assert) {
134-
assert.expect(2)
135-
var $btngroup = $('<div class="btn-group" data-toggle="buttons"/>')
136-
var $btn = $('<button class="btn">fat</button>')
137-
var $inner = $('<i/>')
138-
$btngroup
139-
.append($btn.append($inner))
140-
.appendTo('#qunit-fixture')
141-
assert.ok(!$btn.hasClass('active'), 'btn does not have active class')
142-
$inner.trigger('click')
143-
assert.ok($btn.hasClass('active'), 'btn has class active')
144-
})
145-
146133
QUnit.test('should check for closest matching toggle', function (assert) {
147134
assert.expect(12)
148135
var groupHTML = '<div class="btn-group" data-toggle="buttons">'

0 commit comments

Comments
 (0)