diff --git a/spec/editor-component-spec.coffee b/spec/editor-component-spec.coffee index 6b988f818..de7439917 100644 --- a/spec/editor-component-spec.coffee +++ b/spec/editor-component-spec.coffee @@ -19,7 +19,7 @@ describe "EditorComponent", -> spyOn(window, "clearInterval").andCallFake window.fakeClearInterval delayAnimationFrames = false - nextAnimationFrame = null + nextAnimationFrame = -> throw new Error('No animation frame requested') spyOn(window, 'requestAnimationFrame').andCallFake (fn) -> if delayAnimationFrames nextAnimationFrame = fn