From bad0835d59177d92ea99027eee44eea730758178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Fri, 18 Aug 2023 12:16:33 +0200 Subject: [PATCH] chore: fix role checking test to consider transitioning role --- packages/snjs/mocha/features.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/snjs/mocha/features.test.js b/packages/snjs/mocha/features.test.js index 0ac41c29696..9e061ad9110 100644 --- a/packages/snjs/mocha/features.test.js +++ b/packages/snjs/mocha/features.test.js @@ -35,12 +35,12 @@ describe('features', () => { describe('new user roles received on api response meta', () => { it('should save roles and features', async () => { - expect(application.features.onlineRoles).to.have.lengthOf(1) + expect(application.features.onlineRoles).to.have.lengthOf.above(0) expect(application.features.onlineRoles[0]).to.equal('CORE_USER') const storedRoles = await application.getValue(StorageKey.UserRoles) - expect(storedRoles).to.have.lengthOf(1) + expect(storedRoles).to.have.lengthOf.above(0) expect(storedRoles[0]).to.equal('CORE_USER') }) })