diff --git a/lib/timeline-window.js b/lib/timeline-window.js index 67e949c47..10d7d3f98 100644 --- a/lib/timeline-window.js +++ b/lib/timeline-window.js @@ -186,8 +186,8 @@ TimelineWindow.prototype.canPaginate = function(direction) { * even if there are fewer than 'size' of them, as we will just return those * we already know about.) * - * @param {number} [requestLimit=5] limit for the number of API requests we should - * make. + * @param {number} [requestLimit = 5] limit for the number of API requests we + * should make. * * @return {module:client.Promise} Resolves to a boolean which is true if more events * were successfully retrieved. diff --git a/spec/unit/timeline-window.spec.js b/spec/unit/timeline-window.spec.js index ee85b5fe5..b6f91d111 100644 --- a/spec/unit/timeline-window.spec.js +++ b/spec/unit/timeline-window.spec.js @@ -431,7 +431,7 @@ describe("TimelineWindow", function() { expect(timeline0).toBe(timeline); expect(opts.backwards).toBe(false); expect(opts.limit).toEqual(2); - paginateCount += 1 + paginateCount += 1; return q(true); };