fix(sql-to-rest): tests

This commit is contained in:
Greg Richardson committed 2024-05-08 21:42:34 -06:00
1 parent d754bf400c
commit c810e59269
2 files changed
+3 -5

No files matched your search

@@ -611,7 +611,7 @@ describe('select', () => {
const { method, fullPath } = await renderHttp(statement)
expect(method).toBe('GET')
expect(fullPath).toBe('/books?select=partialPages:pages::pg_catalog.float')
expect(fullPath).toBe('/books?select=partialPages:pages::float')
})
test('cast in where clause fails', async () => {
@@ -1281,7 +1281,7 @@ describe('select', () => {
const { method, fullPath } = await renderHttp(statement)
expect(method).toBe('GET')
expect(fullPath).toBe('/profiles?select=region,age.max(),age.min')
expect(fullPath).toBe('/profiles?select=region,age.max(),age.min()')
})
test('count on column', async () => {
@@ -724,9 +724,7 @@ describe('select', () => {
expect(code).toBe(stripIndent`
const { data, error } = await supabase
.from('books')
.select(
'partialPages:pages::float',
)
.select('partialPages:pages::float')
`)
})