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

      snippetsModule = null

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

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

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

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


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

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

