From 18fdc482a9ec1d46e6a0926161fd511ea58bc599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Fri, 18 Aug 2023 13:34:15 +0200 Subject: [PATCH] chore: fix role checking test to consider transitioning role (#2434) --- 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 0ac41c296..9e061ad91 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') }) })