File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,18 @@ describe "Snippet Loading", ->
223223 expect (Object .keys (snippets).length ).toBe 1
224224 atom .config .set (' core.packagesWithSnippetsDisabled' , originalConfig)
225225
226+ it " still includes a disabled package's snippets in the list of unparsed snippets" , ->
227+ originalConfig = atom .config .get (' core.packagesWithSnippetsDisabled' )
228+ atom .config .set (' core.packagesWithSnippetsDisabled' , [])
229+
230+ activateSnippetsPackage ()
231+ runs ->
232+ atom .config .set (' core.packagesWithSnippetsDisabled' , [' package-with-snippets' ])
233+ allSnippets = snippetsService .getUnparsedSnippets ()
234+ scopedSnippet = allSnippets .find (s) ->
235+ s .selectorString is ' .package-with-snippets-unique-scope'
236+ expect (scopedSnippet).toNotBe undefined
237+
226238 it " never loads a package's snippets when that package is disabled in config" , ->
227239 originalConfig = atom .config .get (' core.packagesWithSnippetsDisabled' )
228240 atom .config .set (' core.packagesWithSnippetsDisabled' , [' package-with-snippets' ])
You can’t perform that action at this time.
0 commit comments