]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
js/tests/unit/scrollspy.js: Fix "offsed" typos (#19985)
authorChris Rebert <github@chrisrebert.com>
Mon, 30 May 2016 01:36:09 +0000 (18:36 -0700)
committerChris Rebert <github@chrisrebert.com>
Mon, 30 May 2016 01:36:09 +0000 (18:36 -0700)
[skip sauce]
[skip validator]

js/tests/unit/scrollspy.js

index 878c4d389d6eb9288ad753da1f83f8dff7f61759..cc78f4d6d5ed764f62a647012f01a7632879efc1 100644 (file)
@@ -362,7 +362,7 @@ $(function () {
       var $target = $('#div-' + type + 'm-2')
       var scrollspy = $content.data('bs.scrollspy')
 
-      assert.ok(scrollspy._offsets[1] === $target.offset().top, 'offsed method with ' + type + ' option')
+      assert.ok(scrollspy._offsets[1] === $target.offset().top, 'offset method with ' + type + ' option')
       assert.ok(scrollspy._offsets[1] !== $target.position().top, 'position method with ' + type + ' option')
 
       deferred.resolve()
@@ -405,7 +405,7 @@ $(function () {
       var $target = $('#div-' + type + 'm-2')
       var scrollspy = $content.data('bs.scrollspy')
 
-      assert.ok(scrollspy._offsets[1] !== $target.offset().top, 'offsed method with ' + type + ' option')
+      assert.ok(scrollspy._offsets[1] !== $target.offset().top, 'offset method with ' + type + ' option')
       assert.ok(scrollspy._offsets[1] === $target.position().top, 'position method with ' + type + ' option')
 
       deferred.resolve()