Skip to content

Commit 614d52b

Browse files
committed
delete this test for now - as affix is still heavily underdevelopment
1 parent 5247b15 commit 614d52b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Diff for: js/bootstrap-affix.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
$('[data-spy="affix"]').each(function () {
8989
var $spy = $(this)
9090
, data = $spy.data()
91-
91+
9292
data.offset = data.offset || {}
9393

9494
data.offsetX && (data.offset.x = data.offsetX)

Diff for: js/tests/unit/bootstrap-affix.js

-6
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,4 @@ $(function () {
1616
ok(!$affix.hasClass('affix'), 'affix class was not added')
1717
})
1818

19-
test("should add affix class if scrolled to correct position", function () {
20-
var $affix = $('<div></div>').appendTo('body').affix()
21-
$('body').trigger('scroll')
22-
ok($affix.hasClass('affix'), 'element has class affix')
23-
})
24-
2519
})

0 commit comments

Comments
 (0)