Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann-S committed Mar 28, 2017
1 parent be51f36 commit 31e138d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/tests/unit/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = $('<input type="checkbox" data-toggle="collapse" data-target="#collapsediv1" />').appendTo('#qunit-fixture')

$('<div id="collapsediv1"/>')
.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()
Expand Down

0 comments on commit 31e138d

Please sign in to comment.