From 0ca26d0f75d107526d2b7a8d29a637bd845bf96f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Fri, 10 Mar 2023 20:40:23 +0100 Subject: [PATCH] chore: features fix specs --- packages/features/src/Domain/Feature/Features.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/features/src/Domain/Feature/Features.spec.ts b/packages/features/src/Domain/Feature/Features.spec.ts index c34cb5ca2..f70180f80 100644 --- a/packages/features/src/Domain/Feature/Features.spec.ts +++ b/packages/features/src/Domain/Feature/Features.spec.ts @@ -2,11 +2,11 @@ import { SubscriptionName } from '@standardnotes/common' import { GetFeatures, GetFeaturesForSubscription } from './Features' describe('features', () => { - it('all features should have availableInSubscriptions populated', () => { + it('all features should have either availableInSubscriptions or availableInRoles populated', () => { const features = GetFeatures() for (const feature of features) { - expect(feature.availableInSubscriptions.length).toBeGreaterThan(0) + expect(feature.availableInSubscriptions.length > 0 || feature.availableInRoles !== undefined && feature.availableInRoles.length > 0).toBeTruthy() } }) it('gets features for plus plan', () => {