Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Dec 20, 2020
1 parent 310c693 commit 1360a3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions js/tests/unit/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,10 +553,10 @@ $(function () {

$dropdown.parent('.dropdown')
.on('hide.bs.dropdown', function (e) {
assert.notOk(e.clickEvent)
assert.strictEqual(typeof e.clickEvent, 'undefined')
})
.on('hidden.bs.dropdown', function (e) {
assert.notOk(e.clickEvent)
assert.strictEqual(typeof e.clickEvent, 'undefined')
})
.on('shown.bs.dropdown', function () {
assert.ok(true, 'shown was fired')
Expand Down Expand Up @@ -1163,7 +1163,7 @@ $(function () {

dropdown.update()

assert.notOk(dropdown._popper)
assert.strictEqual(dropdown._popper, null)
assert.true(spyDetectNavbar.called)
})

Expand Down Expand Up @@ -1216,7 +1216,7 @@ $(function () {

var dropdown = $dropdown.data('bs.dropdown')

assert.notOk(dropdown._popper)
assert.strictEqual(dropdown._popper, null)
assert.notStrictEqual(dropdown._menu, null)
assert.notStrictEqual(dropdown._element, null)

Expand Down
4 changes: 2 additions & 2 deletions js/tests/unit/popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ $(function () {
assert.false($popover.hasClass('show'), 'popover is hidden')
assert.strictEqual(typeof $popover.data('popover'), 'undefined', 'popover does not have data')
assert.strictEqual($._data($popover[0], 'events').click[0].namespace, 'foo', 'popover still has click.foo')
assert.notOk($._data($popover[0], 'events').mouseover, 'popover does not have mouseover event')
assert.notOk($._data($popover[0], 'events').mouseout, 'popover does not have mouseout event')
assert.strictEqual(typeof $._data($popover[0], 'events').mouseover, 'undefined', 'popover does not have mouseover event')
assert.strictEqual(typeof $._data($popover[0], 'events').mouseout, 'undefined', 'popover does not have mouseout event')
})

QUnit.test('should render popover element using delegated selector', function (assert) {
Expand Down
4 changes: 2 additions & 2 deletions js/tests/unit/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ $(function () {
assert.false($tooltip.hasClass('show'), 'tooltip is hidden')
assert.strictEqual(typeof $._data($tooltip[0], 'bs.tooltip'), 'undefined', 'tooltip does not have data')
assert.strictEqual($._data($tooltip[0], 'events').click[0].namespace, 'foo', 'tooltip still has click.foo')
assert.notOk($._data($tooltip[0], 'events').mouseover, 'tooltip does not have mouseover event')
assert.notOk($._data($tooltip[0], 'events').mouseout, 'tooltip does not have mouseout event')
assert.strictEqual(typeof $._data($tooltip[0], 'events').mouseover, 'undefined', 'tooltip does not have mouseover event')
assert.strictEqual(typeof $._data($tooltip[0], 'events').mouseout, 'undefined', 'tooltip does not have mouseout event')
})

QUnit.test('should show tooltip when toggle is called', function (assert) {
Expand Down

0 comments on commit 1360a3f

Please sign in to comment.