Skip to content

Commit

Permalink
Modify unit test for throttle feature
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Aug 16, 2018
1 parent 239e3b0 commit fe272f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/specs/InfiniteLoading.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ describe('vue-infinite-loading', () => {
continuesCall(() => {
scrollParent.scrollTop += 10;
}, 10, () => {
expect(spyFn).to.have.been.callCount(1 + alreadyCalledTimes);
expect(spyFn).to.have.been.callCount(0 + alreadyCalledTimes);
setTimeout(() => {
expect(spyFn).to.have.been.callCount(1 + alreadyCalledTimes);
done();
Expand Down

0 comments on commit fe272f5

Please sign in to comment.