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

Commit 57d7b4c

Browse files
committed
test: force access to member of PostgrestBuilder
1 parent b33c5ed commit 57d7b4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/basic.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ test('stored procedure', async () => {
1515

1616
test('custom headers', async () => {
1717
const postgrest = new PostgrestClient(REST_URL, { headers: { apikey: 'foo' } })
18-
expect(postgrest.from('users').select().headers['apikey']).toEqual('foo')
18+
expect((postgrest.from('users').select() as any).headers['apikey']).toEqual('foo')
1919
})
2020

2121
test('auth', async () => {
2222
const postgrest = new PostgrestClient(REST_URL).auth('foo')
23-
expect(postgrest.from('users').select().headers['Authorization']).toEqual('Bearer foo')
23+
expect((postgrest.from('users').select() as any).headers['Authorization']).toEqual('Bearer foo')
2424
})
2525

2626
test('switch schema', async () => {

0 commit comments

Comments
 (0)