     afterEach ->
       jasmine.restoreDeprecationsSnapshot()
 
-    it 'getLoadedThemes get all the loaded themes', ->
-      themes = themeManager.getLoadedThemes()
-      expect(themes.length).toBeGreaterThan(2)
-
-    it 'getActiveThemes get all the active themes', ->
-      waitsForPromise ->
-        themeManager.activateThemes()
-
-      runs ->
-        names = atom.config.get('core.themes')
-        expect(names.length).toBeGreaterThan(0)
-        themes = themeManager.getActiveThemes()
-        expect(themes).toHaveLength(names.length)
+    describe 'getLoadedThemes', ->
+      it 'gets all the loaded themes', ->
+        themes = themeManager.getLoadedThemes()
+        expect(themes.length).toBeGreaterThan(2)
+
+    describe "getActiveThemes", ->
+      it 'gets all the active themes', ->
+        waitsForPromise -> themeManager.activateThemes()
+
+        runs ->
+          names = atom.config.get('core.themes')
+          expect(names.length).toBeGreaterThan(0)
+          themes = themeManager.getActiveThemes()
+          expect(themes).toHaveLength(names.length)
 
   describe "when the core.themes config value contains invalid entry", ->
     it "ignores theme", ->

        didChangeActiveThemesHandler.callCount is 1

      runs ->
        expect($('style[priority=1]')).toHaveLength 2
        importPaths = themeManager.getImportPaths()
        expect(importPaths.length).toBe 1
        expect(importPaths[0]).toContain 'atom-dark-ui'


      runs ->
        didChangeActiveThemesHandler.reset()
        expect(document.querySelectorAll('style[priority="1"]')).toHaveLength 2
        # atom-dark-ui has an directory path, the syntax one doesn't
        atom.config.set('core.themes', ['theme-with-index-less', 'atom-dark-ui'])

