The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix broken test
Joshen Lim2446752436a1
diff --git a/studio/tests/components/Grid/Grid.utils.test.js b/studio/tests/components/Grid/Grid.utils.test.jsindex c727de07269..e367897d2a3 100644--- a/studio/tests/components/Grid/Grid.utils.test.js+++ b/studio/tests/components/Grid/Grid.utils.test.js@@ -34,14 +34,16 @@ describe('SupabaseGrid.utils: formatFilterURLParams', () => {const mockInput = ['id:gte:20', 'id:lte:40']const output = formatFilterURLParams(mockInput)expect(output).toHaveLength(2)- expect(output[0]).toHaveProperty('id')- expect(output[0]).toHaveProperty('column', 'id')- expect(output[0]).toHaveProperty('operator', '>=')- expect(output[0]).toHaveProperty('value', '20')- expect(output[1]).toHaveProperty('id')- expect(output[1]).toHaveProperty('column', 'id')- expect(output[1]).toHaveProperty('operator', '<=')- expect(output[1]).toHaveProperty('value', '40')+ expect(output[0]).toStrictEqual({+ column: 'id',+ operator: '>=',+ value: '20',+ })+ expect(output[1]).toStrictEqual({+ column: 'id',+ operator: '<=',+ value: '40',+ })})test('should reject any malformed filter options based on URL params', () => {const mockInput = ['id', ':gte', ':50', 'id:eq:10']@@ -57,8 +59,10 @@ describe('SupabaseGrid.utils: formatFilterURLParams', () => {const mockInput = ['id:ilike:']const output = formatFilterURLParams(mockInput)expect(output).toHaveLength(1)- expect(output[0]).toHaveProperty('column', 'id')- expect(output[0]).toHaveProperty('operator', '~~*')- expect(output[0]).toHaveProperty('value', '')+ expect(output[0]).toStrictEqual({+ column: 'id',+ operator: '~~*',+ value: '',+ })})})