💚 Avoid resetting atom.grammars

...because it messes up subsequent tests that hit code paths that make use of
atom.grammars.

/cc: @nathansobo @maxbrunsfeld
This commit is contained in:
Antonio Scandurra
2015-10-06 19:33:23 +02:00
committed by Nathan Sobo
parent 4108939201
commit b2d178f641

View File

@@ -770,8 +770,6 @@ describe "PackageManager", ->
atom.packages.deactivatePackages()
atom.packages.unloadPackages()
GrammarRegistry = require '../src/grammar-registry'
atom.grammars = window.syntax = new GrammarRegistry(config: atom.config)
jasmine.restoreDeprecationsSnapshot()
it "activates all the packages, and none of the themes", ->