             SnippetsProvider =
               getSnippets: -> snippetsModule.provideSnippets().getUnparsedSnippets()
               getUserSnippetsPath: snippetsModule.getUserSnippetsPath()
-
-        waitsForPromise ->
-          atom.packages.activatePackage(path.join(__dirname, 'fixtures', 'language-test'))
 
         waitsFor 'snippets to load', -> snippetsModule.provideSnippets().bundledSnippetsLoaded()
 


          SnippetsProvider =
            getSnippets: -> snippetsModule.provideSnippets().getUnparsedSnippets()

      waitsForPromise ->
        atom.packages.activatePackage(path.join(__dirname, 'fixtures', 'language-test'))

      waitsFor 'snippets to load', -> snippetsModule.provideSnippets().bundledSnippetsLoaded()



      beforeEach ->
        waitsForPromise ->
          atom.packages.activatePackage(path.join(__dirname, 'fixtures', 'language-test'))

        waitsForPromise ->
          atom.packages.activatePackage('snippets').then (p) ->
            snippetsModule = p.mainModule
            return unless snippetsModule.provideSnippets().getUnparsedSnippets?
