Commit 78dda497 by Vik Paruchuri

Fix jasmine tests?

parent c5e80b95
...@@ -29,7 +29,6 @@ describe 'CombinedOpenEnded', -> ...@@ -29,7 +29,6 @@ describe 'CombinedOpenEnded', ->
beforeEach => beforeEach =>
# setup the spies # setup the spies
@combined = new CombinedOpenEnded @element @combined = new CombinedOpenEnded @element
spyOn(@combined, 'reload').andCallFake -> return 0
window.setTimeout = jasmine.createSpy().andCallFake (callback, timeout) -> return 5 window.setTimeout = jasmine.createSpy().andCallFake (callback, timeout) -> return 5
it 'polls at the correct intervals', => it 'polls at the correct intervals', =>
...@@ -45,7 +44,6 @@ describe 'CombinedOpenEnded', -> ...@@ -45,7 +44,6 @@ describe 'CombinedOpenEnded', ->
@combined.poll() @combined.poll()
expect(window.queuePollerID).toBeUndefined() expect(window.queuePollerID).toBeUndefined()
expect(window.setTimeout).not.toHaveBeenCalled() expect(window.setTimeout).not.toHaveBeenCalled()
expect(@combined.reload).toHaveBeenCalled()
describe 'rebind', -> describe 'rebind', ->
beforeEach -> beforeEach ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment