From 7024dadb666ba6d7fd5714b49ec95616107b19a4 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Mon, 2 May 2016 18:58:31 -0700 Subject: [PATCH] fix(spec): fix cache in spec --- spec/theme-manager-spec.coffee | 2 ++ src/less-compile-cache.coffee | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/theme-manager-spec.coffee b/spec/theme-manager-spec.coffee index 5d99a4d52..e203f861d 100644 --- a/spec/theme-manager-spec.coffee +++ b/spec/theme-manager-spec.coffee @@ -12,6 +12,8 @@ describe "ThemeManager", -> configDirPath = NylasEnv.getConfigDirPath() beforeEach -> + cache = NylasEnv.fileListCache() + cache.lessCacheImportPaths = null spyOn(console, "log") spyOn(console, "warn") spyOn(console, "error") diff --git a/src/less-compile-cache.coffee b/src/less-compile-cache.coffee index 6bf2d8c45..e1fa0fc14 100644 --- a/src/less-compile-cache.coffee +++ b/src/less-compile-cache.coffee @@ -2,8 +2,6 @@ _ = require 'underscore' path = require 'path' LessCache = require 'less-cache' -fileCacheImportPaths = null - # {LessCache} wrapper used by {ThemeManager} to read stylesheets. module.exports = class LessCompileCache