@@ -141,7 +141,7 @@ describe('/tables', async () => {
141141 assert . equal ( true , ! ! datum )
142142 assert . equal ( true , ! notIncluded )
143143 } )
144- it ( 'should return the columns' , async ( ) => {
144+ it ( 'should return the columns, grants, and policies ' , async ( ) => {
145145 const tables = await axios . get ( `${ URL } /tables` )
146146 const datum = tables . data . find ( ( x ) => `${ x . schema } .${ x . name } ` === 'public.users' )
147147 const idColumn = datum . columns . find ( ( x ) => x . name === 'id' )
@@ -152,11 +152,8 @@ describe('/tables', async () => {
152152 assert . equal ( idColumn . is_updatable , true )
153153 assert . equal ( idColumn . is_identity , true )
154154 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' )
159155 assert . equal ( datum . grants . length > 0 , true )
156+ assert . equal ( datum . policies . length == 0 , true )
160157 } )
161158 it ( 'should return the relationships' , async ( ) => {
162159 const tables = await axios . get ( `${ URL } /tables` )
0 commit comments