From 6776ffe34d734d650823522f8f4e36647ce4b9be Mon Sep 17 00:00:00 2001
From: Jamie Hewitt <jamie.hewitt15@gmail.com>
Date: Tue, 15 Nov 2022 12:40:14 +0300
Subject: [PATCH] Adding inital outline for test

---
 .../Asset/Edit/FormEditMetadata.test.tsx      | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 src/components/Asset/Edit/FormEditMetadata.test.tsx

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).
+    // <FormEditMetadata
+    //   data={content.form.data}
+    //   showPrice={true}
+    //   isComputeDataset={false}
+    // />
+    expect(screen.getByText('New Title')).toBeInTheDocument()
+  })
+})