             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()
 

      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()


    shouldRunScopeTest = parseFloat(atom.getVersion()) >= 1.33

    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?

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

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

