diff --git a/src/components/Asset/Edit/FormEditMetadata.test.tsx b/src/components/Asset/Edit/FormEditMetadata.test.tsx new file mode 100644 index 000000000..0d64e605f --- /dev/null +++ b/src/components/Asset/Edit/FormEditMetadata.test.tsx @@ -0,0 +1,22 @@ +import { render, screen } from '@testing-library/react' +import React from 'react' +import Formik, { useFormikContext } from 'formik' +import FormEditMetadata from './FormEditMetadata' +import content from '../../../../content/pages/editMetadata.json' + +jest.mock('formik') + +describe('src/components/Asset/Edit/FormEditMetadata.tsx', () => { + const useFormikContextMock = jest.spyOn(Formik, 'useFormikContext') + + it('renders fixed price', () => { + // render() + // (useFormikContext as jest.Mock). + // + expect(screen.getByText('New Title')).toBeInTheDocument() + }) +})