fix(spec): fix cache in spec

This commit is contained in:
Evan Morikawa 2016-05-02 18:58:31 -07:00
parent f5c40c6f99
commit 7024dadb66
2 changed files with 2 additions and 2 deletions

View file

@ -12,6 +12,8 @@ describe "ThemeManager", ->
configDirPath = NylasEnv.getConfigDirPath() configDirPath = NylasEnv.getConfigDirPath()
beforeEach -> beforeEach ->
cache = NylasEnv.fileListCache()
cache.lessCacheImportPaths = null
spyOn(console, "log") spyOn(console, "log")
spyOn(console, "warn") spyOn(console, "warn")
spyOn(console, "error") spyOn(console, "error")

View file

@ -2,8 +2,6 @@ _ = require 'underscore'
path = require 'path' path = require 'path'
LessCache = require 'less-cache' LessCache = require 'less-cache'
fileCacheImportPaths = null
# {LessCache} wrapper used by {ThemeManager} to read stylesheets. # {LessCache} wrapper used by {ThemeManager} to read stylesheets.
module.exports = module.exports =
class LessCompileCache class LessCompileCache