Skip to content

Commit 2ecfb75

Browse files
committed
Add testcase, run gulp
1 parent b7c9276 commit 2ecfb75

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lib/shortcuts/infinite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
5757
this.$more.remove()
5858
}
5959

60-
this.options.onAfterPageLoad()
60+
this.options.onAfterPageLoad($items)
6161
}, this))
6262
}, this)
6363
}

lib/shortcuts/infinite.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/infinite-spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ describe('Waypoint Sticky Shortcut', function() {
5555

5656
it('fires the after callback', function() {
5757
expect(afterSpy.callCount).toBeTruthy()
58+
expect(afterSpy.mostRecentCall.args.length).toEqual(1);
59+
expect(afterSpy).toHaveBeenCalledWith(jasmine.any(Object))
5860
})
5961
})
6062

0 commit comments

Comments
 (0)