@elastic-suite/gally-admin-shared
Version:
Shared package for gally admin BO
17 lines (14 loc) • 435 B
text/typescript
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' },
])
})
})
})