Fix jasmine tests?

This commit is contained in:
Vik Paruchuri
2013-02-01 09:28:52 -05:00
parent c5e80b9543
commit 78dda49764

View File

@@ -29,7 +29,6 @@ describe 'CombinedOpenEnded', ->
beforeEach =>
# setup the spies
@combined = new CombinedOpenEnded @element
spyOn(@combined, 'reload').andCallFake -> return 0
window.setTimeout = jasmine.createSpy().andCallFake (callback, timeout) -> return 5
it 'polls at the correct intervals', =>
@@ -45,7 +44,6 @@ describe 'CombinedOpenEnded', ->
@combined.poll()
expect(window.queuePollerID).toBeUndefined()
expect(window.setTimeout).not.toHaveBeenCalled()
expect(@combined.reload).toHaveBeenCalled()
describe 'rebind', ->
beforeEach ->