From b0e66519fc3213aca36d49d38007ebfe0bb0790a Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Thu, 19 May 2016 11:50:06 -0700 Subject: [PATCH] fix(spec): fix config setting spy --- spec/spec-helper.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index 6a83dcb16..5897e0a20 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -199,12 +199,12 @@ beforeEach -> fakePersistedConfig = {} spyOn(Config::, 'getRawValues').andCallFake => fakePersistedConfig - spyOn(Config::, 'setRawValue').andCallFake (keyPath, value) => + spyOn(Config::, 'setRawValue').andCallFake (keyPath, value) -> if (keyPath) _.setValueForKeyPath(fakePersistedConfig, keyPath, value) else fakePersistedConfig = value - return fakePersistedConfig + this.load() NylasEnv.config = new Config() NylasEnv.loadConfig()