Skip to content

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

corrected rest tests for in

awalias71df48f90826
diff --git a/libraries/supabase-js/test/integration/testRest.js b/libraries/supabase-js/test/integration/testRest.js
index 4c34dffe424..11b7f03cec3 100644
--- a/libraries/supabase-js/test/integration/testRest.js
+++ b/libraries/supabase-js/test/integration/testRest.js
@@ -55,7 +55,7 @@ describe('test reading from the rest interface', () => {
const response = await supabase
.from('users')
.filter('id', 'lt', 3)
- .filter('username', 'in', '["awalias","supabot"]')
+ .filter('username', 'in', ['awalias', 'supabot'])
.select('*')
assert(response.body.length === 2, 'should return two records, awalias, and supabot')
})
@@ -136,7 +136,7 @@ describe('test reading from the rest interface', () => {
it('in()', async () => {
const response = await supabase
.from('users')
- .in('id', "['2', '3']")
+ .in('id', [2, 3])
.select('*')
assert(response.body[0].id === 1, 'first item should be id 1')
assert(response.body[1].id === 4, 'last (and second) item should be id 4')