Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit e6a46be

Browse files
committed
style: fix formatting
1 parent e5f5dfa commit e6a46be

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/lib/PostgrestQueryBuilder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ export default class PostgrestQueryBuilder<T> extends PostgrestBuilder<T> {
8787
if (count) {
8888
prefersHeaders.push(`count=${count}`)
8989
}
90-
90+
9191
this.headers['Prefer'] = prefersHeaders.join(',')
92-
92+
9393
return new PostgrestFilterBuilder(this)
9494
}
9595

test/basic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ test('select with count:exact', async () => {
176176
})
177177

178178
test("stored procedure with count: 'exact'", async () => {
179-
const res = await postgrest.rpc('get_status', { name_param: 'supabot'}, {count: 'exact' })
179+
const res = await postgrest.rpc('get_status', { name_param: 'supabot' }, { count: 'exact' })
180180
expect(res).toMatchSnapshot()
181181
})
182182

test/resource-embedding.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ describe('embedded filters', () => {
2424
const res = await postgrest
2525
.from('users')
2626
.select('messages(*)')
27-
.or('channel_id.eq.2,and(message.eq.Hello World 👋,username.eq.supabot)', { foreignTable: 'messages' })
27+
.or('channel_id.eq.2,and(message.eq.Hello World 👋,username.eq.supabot)', {
28+
foreignTable: 'messages',
29+
})
2830
expect(res).toMatchSnapshot()
2931
})
3032
})
@@ -38,14 +40,14 @@ describe('embedded transforms', () => {
3840
expect(res).toMatchSnapshot()
3941
})
4042

41-
test('embedded order on multiple columns', async () => {
43+
test('embedded order on multiple columns', async () => {
4244
const res = await postgrest
4345
.from('users')
4446
.select('messages(*)')
4547
.order('channel_id', { foreignTable: 'messages', ascending: false })
4648
.order('username', { foreignTable: 'messages', ascending: false })
47-
expect(res).toMatchSnapshot()
48-
})
49+
expect(res).toMatchSnapshot()
50+
})
4951

5052
test('embedded limit', async () => {
5153
const res = await postgrest

0 commit comments

Comments
 (0)