diff --git a/spec/text-editor-component-spec.coffee b/spec/text-editor-component-spec.coffee index a9dd255d8..6f20a4fc0 100644 --- a/spec/text-editor-component-spec.coffee +++ b/spec/text-editor-component-spec.coffee @@ -824,7 +824,8 @@ describe "TextEditorComponent", -> describe "when the component is destroyed", -> it "stops listening for folding events", -> - nextAnimationFrame() + nextAnimationFrame() unless nextAnimationFrame is noAnimationFrame # clear pending frame request if needed + component.destroy() lineNumber = component.lineNumberNodeForScreenRow(1)