RocketChat/Rocket.Chat

View on GitHub
ee/packages/license/src/validation/isBehaviorsInResult.ts

Summary

Maintainability
A
1 hr
Test Coverage
import type { BehaviorWithContext, LicenseBehavior } from '@rocket.chat/core-typings';

export const isBehaviorsInResult = (result: BehaviorWithContext[], expectedBehaviors: LicenseBehavior[]) =>
    result.some(({ behavior }) => expectedBehaviors.includes(behavior));