finish unit test for incremental update

This commit is contained in:
Brian Gough 2017-08-18 09:41:43 +01:00
parent d3da4e1d3f
commit d614af2860

View file

@ -54,7 +54,6 @@ describe "ResourceWriter", ->
.should.equal true .should.equal true
it "should store the sync state", -> it "should store the sync state", ->
console.log "CHECKING", @syncState, @basePath
@ResourceWriter.storeSyncState @ResourceWriter.storeSyncState
.calledWith(@syncState, @basePath) .calledWith(@syncState, @basePath)
.should.equal true .should.equal true
@ -77,7 +76,7 @@ describe "ResourceWriter", ->
@ResourceWriter.checkSyncState = sinon.stub().callsArgWith(2, null, true) @ResourceWriter.checkSyncState = sinon.stub().callsArgWith(2, null, true)
@ResourceWriter.storeSyncState = sinon.stub().callsArg(2) @ResourceWriter.storeSyncState = sinon.stub().callsArg(2)
@ResourceListManager.saveResourceList = sinon.stub().callsArg(2) @ResourceListManager.saveResourceList = sinon.stub().callsArg(2)
@ResourceListManager.loadResourceList = sinon.stub().callsArg(1) @ResourceListManager.loadResourceList = sinon.stub().callsArgWith(1, null, @resources)
@ResourceWriter.syncResourcesToDisk({ @ResourceWriter.syncResourcesToDisk({
project_id: @project_id, project_id: @project_id,
syncType: "incremental", syncType: "incremental",