1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Deleting unused test

This commit is contained in:
Jamie Hewitt 2022-11-16 11:03:51 +03:00
parent c2514debf0
commit 36a88674b4

View File

@ -1,32 +0,0 @@
import { render, screen } from '@testing-library/react'
import React from 'react'
import Formik, { FormikErrors, FormikTouched, FormikState } from 'formik'
import FormEditMetadata from './FormEditMetadata'
import content from '../../../../content/pages/editMetadata.json'
let fieldMock = {}
const metaMock = {}
const helperMock = {}
jest.mock('formik', () => ({
...jest.requireActual('formik'),
useField: jest.fn(() => {
return [fieldMock, metaMock, helperMock]
})
}))
describe('src/components/Asset/Edit/FormEditMetadata.tsx', () => {
// const useFormikContextMock = jest.spyOn(Formik, 'useFormikContext')
it('renders fixed price', () => {
fieldMock = { foo: 'bar' }
render(
<FormEditMetadata
data={content.form.data}
showPrice={true}
isComputeDataset={false}
/>
)
expect(screen.getByText('New Title')).toBeInTheDocument()
})
})