Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/material/src/complex/MaterialEnumArrayRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
FormHelperText,
Hidden
} from '@mui/material';
import startCase from 'lodash/startCase';
import isEmpty from 'lodash/isEmpty';
import React from 'react';

Expand Down Expand Up @@ -68,7 +67,7 @@ export const MaterialEnumArrayRenderer = ({
{...otherProps}
/>
}
label={startCase(option.label)}
label={option.label}
/>
);
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ describe('EnumArrayControl', () => {
);
const labels = wrapper.find('label');
expect(labels.first().text()).toBe('My Title');
expect(labels.last().text()).toBe('Bar');
expect(labels.last().text()).toBe('bar');
});

test('oneOf items - updates data', (done) => {
Expand Down Expand Up @@ -176,9 +176,9 @@ describe('EnumArrayControl', () => {
/>
);
const labels = wrapper.find('label');
expect(labels.at(0).text()).toBe('A');
expect(labels.at(1).text()).toBe('B');
expect(labels.at(2).text()).toBe('C');
expect(labels.at(0).text()).toBe('a');
expect(labels.at(1).text()).toBe('b');
expect(labels.at(2).text()).toBe('c');
});

test('enum items - updates data', (done) => {
Expand Down