 
   describe "when the core.themes config value contains invalid entry", ->
     it "ignores theme", ->
+      spyOn(console, 'warn')
       atom.config.set 'core.themes', [
         'atom-light-ui'
         null

      themes = themeManager.getLoadedThemes()
      expect(themes.length).toBeGreaterThan(2)

    fit 'getActiveThemes get all the active themes', ->
      waitsForPromise ->
        themeManager.activateThemes()


Package = require '../src/package'

describe "ThemeManager", ->
  [originalThemes, themeManager] = []
  resourcePath = atom.getLoadSettings().resourcePath
  configDirPath = atom.getConfigDirPath()

  beforeEach ->
    originalThemes = atom.themes
    atom.themes = themeManager = new ThemeManager({packageManager: atom.packages, resourcePath, configDirPath})

  afterEach ->
    themeManager.deactivateThemes()
    atom.themes = originalThemes

  describe "theme getters and setters", ->
    beforeEach ->
