diff --git a/packages/orchestrator-ui-components/src/components/WFOSubscription/utils/utils.spec.ts b/packages/orchestrator-ui-components/src/components/WFOSubscription/utils/utils.spec.ts index d4755828a..f75888faf 100644 --- a/packages/orchestrator-ui-components/src/components/WFOSubscription/utils/utils.spec.ts +++ b/packages/orchestrator-ui-components/src/components/WFOSubscription/utils/utils.spec.ts @@ -1,25 +1,9 @@ import { FieldValue } from '../../../types'; import { - getColor, getFieldFromProductBlockInstanceValues, getProductBlockTitle, } from './utils'; -describe('getColor()', () => { - it('returns "error" when color is 0', () => { - const result = getColor(0); - expect(result).toEqual('danger'); - }); - it('returns "warning" when color is 1', () => { - const result = getColor(1); - expect(result).toEqual('warning'); - }); - it('returns "primary" when color is 2', () => { - const result = getColor(2); - expect(result).toEqual('primary'); - }); -}); - describe('getFieldFromProductBlockInstanceValues()', () => { const instanceValues: FieldValue[] = [ { field: 'field1', value: 'value1' }, diff --git a/packages/orchestrator-ui-components/src/components/WFOSubscription/utils/utils.tsx b/packages/orchestrator-ui-components/src/components/WFOSubscription/utils/utils.tsx index ee22edc1d..12eca2ad5 100644 --- a/packages/orchestrator-ui-components/src/components/WFOSubscription/utils/utils.tsx +++ b/packages/orchestrator-ui-components/src/components/WFOSubscription/utils/utils.tsx @@ -37,12 +37,6 @@ export const tabs = [ }, ]; -export function getColor(num: number) { - if (num === 1) return 'warning'; - if (num === 2) return 'primary'; - return 'danger'; -} - export const getFieldFromProductBlockInstanceValues = ( instanceValues: FieldValue[], field: string,