From 21a4eb0cf00add2c4cf2e69e55c55cb9fd50c239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Fri, 20 Jan 2023 11:26:16 +0100 Subject: [PATCH] fix(snjs): signed out fetching revisions test --- packages/snjs/mocha/history.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/snjs/mocha/history.test.js b/packages/snjs/mocha/history.test.js index b8b6b9551..a373ea95f 100644 --- a/packages/snjs/mocha/history.test.js +++ b/packages/snjs/mocha/history.test.js @@ -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 () {