From 712ba2c3fa4390f609b2c0b77c997bc8ec95b866 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 21 Mar 2013 18:36:50 -0700 Subject: [PATCH] Clear all syntax subscriptions after spec runs The global syntax object is reused between specs so each spec should start off with a clean listener list. --- spec/spec-helper.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index 4690e981a..bfb1ffdef 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -88,6 +88,7 @@ afterEach -> ensureNoPathSubscriptions() atom.pendingModals = [[]] atom.presentingModal = false + syntax.off() waits(0) # yield to ui thread to make screen update more frequently window.loadPackage = (name, options={}) ->