mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-06 08:08:10 +08:00
fix(spec): fix config setting spy
This commit is contained in:
parent
3118f19c11
commit
bf9052391f
1 changed files with 2 additions and 2 deletions
|
@ -199,12 +199,12 @@ beforeEach ->
|
||||||
fakePersistedConfig = {}
|
fakePersistedConfig = {}
|
||||||
spyOn(Config::, 'getRawValues').andCallFake =>
|
spyOn(Config::, 'getRawValues').andCallFake =>
|
||||||
fakePersistedConfig
|
fakePersistedConfig
|
||||||
spyOn(Config::, 'setRawValue').andCallFake (keyPath, value) =>
|
spyOn(Config::, 'setRawValue').andCallFake (keyPath, value) ->
|
||||||
if (keyPath)
|
if (keyPath)
|
||||||
_.setValueForKeyPath(fakePersistedConfig, keyPath, value)
|
_.setValueForKeyPath(fakePersistedConfig, keyPath, value)
|
||||||
else
|
else
|
||||||
fakePersistedConfig = value
|
fakePersistedConfig = value
|
||||||
return fakePersistedConfig
|
this.load()
|
||||||
NylasEnv.config = new Config()
|
NylasEnv.config = new Config()
|
||||||
NylasEnv.loadConfig()
|
NylasEnv.loadConfig()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue