finish unit test for incremental update
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user