mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Only load necessary packages in snippets spec
This commit is contained in:
committed by
Nathan Sobo
parent
e5436974eb
commit
dfecef24e9
@@ -14,7 +14,8 @@ describe "Snippets extension", ->
|
||||
|
||||
packageWithSnippets = window.loadPackage("package-with-snippets")
|
||||
spyOn(atom, "getLoadedPackages").andCallFake ->
|
||||
window.textMatePackages.concat([packageWithSnippets])
|
||||
textMatePackages = window.textMatePackages.filter (pack) -> /package-with-a-cson-grammar|test|textmate-package|javascript/.test(pack.name)
|
||||
textMatePackages.concat([packageWithSnippets])
|
||||
|
||||
spyOn(require("snippets/lib/snippets"), 'loadAll')
|
||||
window.loadPackage("snippets")
|
||||
@@ -282,6 +283,7 @@ describe "Snippets extension", ->
|
||||
|
||||
it "loads CSON snippets from TextMate packages", ->
|
||||
jasmine.unspy(snippets, 'loadTextMateSnippets')
|
||||
spyOn(console, 'warn')
|
||||
snippets.loaded = false
|
||||
snippets.loadAll()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user