Skip to content

Commit f0a16c3

Browse files
committed
chore: add tests for table list
1 parent 95992c9 commit f0a16c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/lib/tables.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ const cleanNondet = (x: any) => {
1717
}
1818
}
1919

20+
test('list schemas', async () => {
21+
const res = await pgMeta.tables.list({ schemas: ['private'] })
22+
const data = res.data?.find(({ name }) => name === 'users')
23+
expect(data).toBeUndefined()
24+
})
25+
2026
test('list', async () => {
2127
const res = await pgMeta.tables.list()
2228

0 commit comments

Comments
 (0)