Skip to content

Commit

Permalink
test tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert committed Nov 17, 2014
1 parent 3037b10 commit ba1c458
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions js/tests/unit/affix.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,10 @@ $(function () {
+ '</div>'
$(templateHTML).appendTo(document.body)

$('#affixTopTarget').bootstrapAffix({
offset: { top: 120, bottom: 0 }
})

$('#affixTopTarget')
.bootstrapAffix({
offset: { top: 120, bottom: 0 }
})
.on('affixed-top.bs.affix', function () {
ok($('#affixTopTarget').hasClass('affix-top'), 'affix-top class applied')
start()
Expand All @@ -95,7 +94,7 @@ $(function () {

setTimeout(function () {
window.scroll(0, 119)
}, 0)
}, 0)
}, 250)
}, 250)
})
})

0 comments on commit ba1c458

Please sign in to comment.