diff options
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/lib/utils/poll_spec.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/javascripts/lib/utils/poll_spec.js b/spec/javascripts/lib/utils/poll_spec.js index 3e009c9599a..05bc6bfd74b 100644 --- a/spec/javascripts/lib/utils/poll_spec.js +++ b/spec/javascripts/lib/utils/poll_spec.js @@ -109,12 +109,14 @@ describe('Poll', () => { new Poll({ resource: service, method: 'fetch', + data: { page: 1 }, successCallback: callbacks.success, errorCallback: callbacks.error, }).makeRequest(); setTimeout(() => { expect(service.fetch.calls.count()).toEqual(2); + expect(service.fetch).toHaveBeenCalledWith({ page: 1 }); expect(callbacks.success).toHaveBeenCalled(); expect(callbacks.error).not.toHaveBeenCalled(); done(); |