Skip to content

Commit fd2ec46

Browse files
Lint errors
1 parent 487869b commit fd2ec46

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

ui/src/components/FormModifications/FormModifications.test.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ import {
1616
thirdModificationField,
1717
} from './TestConfig';
1818
import EntityModal, { EntityModalProps } from '../EntityModal/EntityModal';
19-
import { EntitiesAllowingModifications } from '../../types/components/BaseFormTypes';
19+
import { BaseFormState, EntitiesAllowingModifications } from '../../types/components/BaseFormTypes';
2020
import { invariant } from '../../util/invariant';
2121
import { StringOrTextWithLinks } from '../../types/globalConfig/baseSchemas';
2222
import { getModificationForEntity } from './FormModifications';
23+
import {AcceptableFormValueOrNullish} from "@/types/components/shareableTypes.ts";
2324

2425
const handleRequestClose = vi.fn();
2526
const setUpConfigWithDefaultValue = () => {
@@ -290,9 +291,14 @@ it('verify no modifications', async () => {
290291
});
291292

292293
it('check mode for getModificationForEntity', () => {
293-
const state: any = {
294+
const state: BaseFormState = {
294295
data: {
295-
[editOnlyModificationField.field]: { value: 'a' },
296+
[editOnlyModificationField.field]: {
297+
value: 'a',
298+
disabled: false,
299+
error: false,
300+
display: true,
301+
},
296302
},
297303
};
298304

0 commit comments

Comments
 (0)