Skip to content

Commit

Permalink
Add testcase, run gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
CHH committed Apr 17, 2015
1 parent b7c9276 commit 2ecfb75
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/shortcuts/infinite.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
this.$more.remove()
}

this.options.onAfterPageLoad()
this.options.onAfterPageLoad($items)
}, this))
}, this)
}
Expand Down
2 changes: 1 addition & 1 deletion lib/shortcuts/infinite.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions test/infinite-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ describe('Waypoint Sticky Shortcut', function() {

it('fires the after callback', function() {
expect(afterSpy.callCount).toBeTruthy()
expect(afterSpy.mostRecentCall.args.length).toEqual(1);
expect(afterSpy).toHaveBeenCalledWith(jasmine.any(Object))
})
})

Expand Down

0 comments on commit 2ecfb75

Please sign in to comment.