Length
This commit is contained in:
parent
07a2561853
commit
95af63c1e5
2 changed files with 3 additions and 3 deletions
|
|
@ -207,7 +207,7 @@ $(function () {
|
|||
var $div = $('<div id="modal-test"/>')
|
||||
$div
|
||||
.on('shown.bs.modal', function () {
|
||||
assert.true($('#modal-test').length > 0, 'modal inserted into dom')
|
||||
assert.notStrictEqual($('#modal-test').length, 0, 'modal inserted into dom')
|
||||
assert.true($('#modal-test').is(':visible'), 'modal visible')
|
||||
$div.trigger($.Event('keydown', {
|
||||
which: 27
|
||||
|
|
@ -229,7 +229,7 @@ $(function () {
|
|||
var $div = $('<div id="modal-test"/>')
|
||||
$div
|
||||
.on('shown.bs.modal', function () {
|
||||
assert.true($('#modal-test').length > 0, 'modal inserted into dom')
|
||||
assert.notStrictEqual($('#modal-test').length, 0, 'modal inserted into dom')
|
||||
assert.true($('#modal-test').is(':visible'), 'modal visible')
|
||||
$div.trigger($.Event('keyup', {
|
||||
which: 27
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ $(function () {
|
|||
target: $('.container')
|
||||
})
|
||||
|
||||
assert.true($('.container').attr('id').length > 0, '`target` has an ID attribute')
|
||||
assert.notStrictEqual($('.container').attr('id').length, 0, '`target` has an ID attribute')
|
||||
|
||||
$scrollspy.one('scroll', function () {
|
||||
assert.true($section.hasClass('active'), '"active" class still on root node')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue