Skip to content

Commit

Permalink
Revert "Add unit test"
Browse files Browse the repository at this point in the history
This reverts commit 21b537c.
  • Loading branch information
pvdlg committed Mar 23, 2017
1 parent 77bccf7 commit 4f37ad2
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions js/tests/unit/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,27 +490,4 @@ $(function () {
.bootstrapCollapse('show')
})

QUnit.test('should allow accordion to use children other than card', function (assert) {
assert.expect(2)
var done = assert.async()
var accordionHTML = '<div id="accordion" data-children=".item">'
+ '<div class="item">'
+ '<a id="linkTrigger" data-parent="#accordion" data-toggle="collapse" href="#collapseOne" aria-expanded="false" aria-controls="collapseOne"></a>'
+ '<div id="collapseOne" class="collapse" role="tabpanel" aria-labelledby="headingThree"></div>'
+ '</div>'
+ '<div class="item">'
+ '<a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo"></a>'
+ '<div id="collapseTwo" class="collapse show" role="tabpanel" aria-labelledby="headingTwo"></div>'
+ '</div>'
+ '</div>'

$(accordionHTML).appendTo('#qunit-fixture')
var $target = $('#linkTrigger')
$('#collapseOne').on('shown.bs.collapse', function () {
assert.ok($(this).hasClass('show'))
assert.ok(!$('#collapseTwo').hasClass('show'))
done()
})
$target.trigger($.Event('click'))
})
})

0 comments on commit 4f37ad2

Please sign in to comment.