mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 15:46:28 +08:00
fix(specs): Update spy on persistModel
to reflect actual behavior
This commit is contained in:
parent
57577b5afa
commit
77138c7aef
1 changed files with 1 additions and 2 deletions
|
@ -42,8 +42,7 @@ describe "SyncbackDraftTask", ->
|
||||||
else if clientId is "missingDraftId" then Promise.resolve()
|
else if clientId is "missingDraftId" then Promise.resolve()
|
||||||
else return Promise.resolve()
|
else return Promise.resolve()
|
||||||
|
|
||||||
spyOn(DatabaseTransaction.prototype, "persistModel").andCallFake (draft) ->
|
spyOn(DatabaseTransaction.prototype, "persistModel").andReturn Promise.resolve()
|
||||||
Promise.resolve(draft)
|
|
||||||
|
|
||||||
describe "queueing multiple tasks", ->
|
describe "queueing multiple tasks", ->
|
||||||
beforeEach ->
|
beforeEach ->
|
||||||
|
|
Loading…
Reference in a new issue