Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Remove unnecessary RowEditor.utils.test.ts

Joshen Lim332e17510500
diff --git a/studio/tests/components/Editor/RowEditor.utils.test.js b/studio/tests/components/Editor/RowEditor.utils.test.js
deleted file mode 100644
index 455b36d43e1..00000000000
--- a/studio/tests/components/Editor/RowEditor.utils.test.js
+++ /dev/null
@@ -1,41 +0,0 @@
-import { validateFields } from 'components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils'
-
-describe('RowEditor.utils: validateFields', () => {
- test('should validate for non-nullable fields correctly', () => {
- const mockFields = [
- {
- name: 'name',
- value: '',
- format: 'text',
- defaultValue: null,
- isNullable: false,
- },
- {
- name: 'age',
- value: 0,
- format: 'int8',
- defaultValue: null,
- isNullable: false,
- },
- {
- name: 'height',
- value: '',
- format: 'int2',
- defaultValue: null,
- isNullable: false,
- },
- {
- name: 'weight',
- value: '',
- format: 'int2',
- defaultValue: null,
- isNullable: true,
- },
- ]
- const res = validateFields(mockFields)
- expect(res).toHaveProperty('name')
- expect(res).not.toHaveProperty('age')
- expect(res).toHaveProperty('height')
- expect(res).not.toHaveProperty('weight')
- })
-})