mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 13:03:42 -05:00
finish unit test for incremental update
This commit is contained in:
parent
d3da4e1d3f
commit
d614af2860
1 changed files with 1 additions and 2 deletions
|
@ -54,7 +54,6 @@ describe "ResourceWriter", ->
|
|||
.should.equal true
|
||||
|
||||
it "should store the sync state", ->
|
||||
console.log "CHECKING", @syncState, @basePath
|
||||
@ResourceWriter.storeSyncState
|
||||
.calledWith(@syncState, @basePath)
|
||||
.should.equal true
|
||||
|
@ -77,7 +76,7 @@ describe "ResourceWriter", ->
|
|||
@ResourceWriter.checkSyncState = sinon.stub().callsArgWith(2, null, true)
|
||||
@ResourceWriter.storeSyncState = 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({
|
||||
project_id: @project_id,
|
||||
syncType: "incremental",
|
||||
|
|
Loading…
Reference in a new issue