@@ -141,7 +141,7 @@ describe('/tables', async () => {
141
141
assert . equal ( true , ! ! datum )
142
142
assert . equal ( true , ! notIncluded )
143
143
} )
144
- it ( 'should return the columns' , async ( ) => {
144
+ it ( 'should return the columns, grants, and policies ' , async ( ) => {
145
145
const tables = await axios . get ( `${ URL } /tables` )
146
146
const datum = tables . data . find ( ( x ) => `${ x . schema } .${ x . name } ` === 'public.users' )
147
147
const idColumn = datum . columns . find ( ( x ) => x . name === 'id' )
@@ -152,11 +152,8 @@ describe('/tables', async () => {
152
152
assert . equal ( idColumn . is_updatable , true )
153
153
assert . equal ( idColumn . is_identity , true )
154
154
assert . equal ( nameColumn . is_identity , false )
155
- } )
156
- it ( 'should return the grants' , async ( ) => {
157
- const tables = await axios . get ( `${ URL } /tables` )
158
- const datum = tables . data . find ( ( x ) => `${ x . schema } .${ x . name } ` === 'public.users' )
159
155
assert . equal ( datum . grants . length > 0 , true )
156
+ assert . equal ( datum . policies . length == 0 , true )
160
157
} )
161
158
it ( 'should return the relationships' , async ( ) => {
162
159
const tables = await axios . get ( `${ URL } /tables` )
0 commit comments