fix(snjs): signed out fetching revisions test

This commit is contained in:
Karol Sójko
2023-01-20 11:26:16 +01:00
parent 6a7ff423ff
commit 21a4eb0cf0

View File

@@ -277,7 +277,7 @@ describe('history manager', () => {
await Factory.safeDeinit(this.application)
})
it('response from server should be empty if not signed in', async function () {
it('response from server should be failed if not signed in', async function () {
await this.application.user.signOut()
this.application = await Factory.createInitAppWithFakeCrypto()
this.historyManager = this.application.historyManager
@@ -286,7 +286,7 @@ describe('history manager', () => {
await this.application.syncService.sync(syncOptions)
const itemHistoryOrError = await this.application.listRevisions.execute({ itemUuid: item.uuid })
expect(itemHistoryOrError.getValue().length).to.equal(0)
expect(itemHistoryOrError.isFailed()).to.equal(true)
})
it('create basic history entries 2', async function () {