💩 Reset fs.write mock before test.

This commit is contained in:
Nathan Sobo 2013-01-04 18:07:37 -07:00
parent f78adfa060
commit af3d3bf4cc

View File

@ -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])