mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-28 11:24:11 +08:00
fix(spec): fix config setting spy
This commit is contained in:
parent
c6f6c7c3a0
commit
b0e66519fc
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue