mirror of
https://github.com/supabase/supabase.git
synced 2026-10-19 08:09:11 +03:00
fix(sql-to-rest): tests
This commit is contained in:
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')
|
||||
`)
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user