UNPKG

@elastic-suite/gally-admin-shared

Version:
17 lines (14 loc) 435 B
import { RuleCombinationOperator } from '../types' import { getOptionsFromEnum } from './options' describe('Options service', () => { describe('getOptionsFromEnum', () => { it('should get the options from enum', () => { expect( getOptionsFromEnum(RuleCombinationOperator, <T>(x: T): T => x) ).toEqual([ { value: 'all', label: 'ALL' }, { value: 'any', label: 'ANY' }, ]) }) }) })