fix broken unit tests

This commit is contained in:
Brian Gough
2017-08-07 15:00:16 +01:00
parent 6542ce20b6
commit 206adc2d04
2 changed files with 5 additions and 3 deletions

View File

@@ -29,7 +29,9 @@ describe "ResourceWriter", ->
]
@ResourceWriter._writeResourceToDisk = sinon.stub().callsArg(3)
@ResourceWriter._removeExtraneousFiles = sinon.stub().callsArg(2)
@ResourceWriter.syncResourcesToDisk(@project_id, @resources, @basePath, @callback)
@ResourceWriter.checkSyncState = sinon.stub().callsArg(2)
@ResourceWriter.storeSyncState = sinon.stub().callsArg(2)
@ResourceWriter.syncResourcesToDisk({project_id: @project_id, resources: @resources}, @basePath, @callback)
it "should remove old files", ->
@ResourceWriter._removeExtraneousFiles