Spaces:
Build error
Build error
File size: 545 Bytes
d9494a5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import { FieldMetadataType } from '@/types';
import { isFieldMetadataSelectKind } from '../isFieldMetadataSelectKind';
describe('isFieldMetadataSelectKind', () => {
it.each([FieldMetadataType.SELECT, FieldMetadataType.MULTI_SELECT])(
'should return true for %s',
(type) => {
expect(isFieldMetadataSelectKind(type)).toBe(true);
},
);
it.each([FieldMetadataType.TEXT, FieldMetadataType.NUMBER])(
'should return false for %s',
(type) => {
expect(isFieldMetadataSelectKind(type)).toBe(false);
},
);
});
|