mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 07:58:04 +03:00
💩 Reset fs.write mock before test.
This commit is contained in:
parent
f78adfa060
commit
af3d3bf4cc
@ -28,6 +28,7 @@ describe "Config", ->
|
||||
config.set("x.y.z", 3)
|
||||
config.setDefaults("a.b", e: 4, f: 5)
|
||||
|
||||
fs.write.reset()
|
||||
config.save()
|
||||
|
||||
writtenConfig = JSON.parse(fs.write.argsForCall[0][1])
|
||||
|
Loading…
Reference in New Issue
Block a user