@@ -2,15 +2,14 @@ import { pgMeta } from './utils'
2
2
3
3
const cleanNondet = ( x : any ) => {
4
4
const {
5
- data : { columns, grants, policies , primary_keys, relationships, ...rest2 } ,
5
+ data : { columns, grants, primary_keys, relationships, ...rest2 } ,
6
6
...rest1
7
7
} = x
8
8
9
9
return {
10
10
data : {
11
11
columns : columns . map ( ( { id, table_id, ...rest } : any ) => rest ) ,
12
12
grants : grants . map ( ( { table_id, ...rest } : any ) => rest ) ,
13
- policies : policies . map ( ( { id, table_id, ...rest } : any ) => rest ) ,
14
13
primary_keys : primary_keys . map ( ( { table_id, ...rest } : any ) => rest ) ,
15
14
relationships : relationships . map ( ( { id, ...rest } : any ) => rest ) ,
16
15
...rest2 ,
@@ -22,14 +21,13 @@ const cleanNondet = (x: any) => {
22
21
test ( 'list' , async ( ) => {
23
22
const res = await pgMeta . tables . list ( )
24
23
25
- const { columns, grants, policies , primary_keys, relationships, ...rest } : any = res . data ?. find (
24
+ const { columns, grants, primary_keys, relationships, ...rest } : any = res . data ?. find (
26
25
( { name } ) => name === 'users'
27
26
)
28
27
29
28
expect ( {
30
29
columns : columns . map ( ( { id, table_id, ...rest } : any ) => rest ) ,
31
30
grants : grants . map ( ( { table_id, ...rest } : any ) => rest ) ,
32
- policies : policies . map ( ( { id, table_id, ...rest } : any ) => rest ) ,
33
31
primary_keys : primary_keys . map ( ( { table_id, ...rest } : any ) => rest ) ,
34
32
relationships : relationships . map ( ( { id, ...rest } : any ) => rest ) ,
35
33
...rest ,
@@ -170,7 +168,6 @@ test('list', async () => {
170
168
"id": Any<Number>,
171
169
"live_rows_estimate": Any<Number>,
172
170
"name": "users",
173
- "policies": Array [],
174
171
"primary_keys": Array [
175
172
Object {
176
173
"name": "id",
@@ -278,7 +275,6 @@ test('retrieve, create, update, delete', async () => {
278
275
"id": Any<Number>,
279
276
"live_rows_estimate": 0,
280
277
"name": "test",
281
- "policies": Array [],
282
278
"primary_keys": Array [],
283
279
"relationships": Array [],
284
280
"replica_identity": "DEFAULT",
@@ -369,7 +365,6 @@ test('retrieve, create, update, delete', async () => {
369
365
"id": Any<Number>,
370
366
"live_rows_estimate": 0,
371
367
"name": "test",
372
- "policies": Array [],
373
368
"primary_keys": Array [],
374
369
"relationships": Array [],
375
370
"replica_identity": "DEFAULT",
@@ -466,7 +461,6 @@ test('retrieve, create, update, delete', async () => {
466
461
"id": Any<Number>,
467
462
"live_rows_estimate": 0,
468
463
"name": "test a",
469
- "policies": Array [],
470
464
"primary_keys": Array [],
471
465
"relationships": Array [],
472
466
"replica_identity": "NOTHING",
@@ -557,7 +551,6 @@ test('retrieve, create, update, delete', async () => {
557
551
"id": Any<Number>,
558
552
"live_rows_estimate": 0,
559
553
"name": "test a",
560
- "policies": Array [],
561
554
"primary_keys": Array [],
562
555
"relationships": Array [],
563
556
"replica_identity": "NOTHING",
@@ -661,7 +654,6 @@ test('update with name unchanged', async () => {
661
654
"id": Any<Number>,
662
655
"live_rows_estimate": 0,
663
656
"name": "t",
664
- "policies": Array [],
665
657
"primary_keys": Array [],
666
658
"relationships": Array [],
667
659
"replica_identity": "DEFAULT",
@@ -756,7 +748,6 @@ test("allow ' in comments", async () => {
756
748
"id": Any<Number>,
757
749
"live_rows_estimate": 0,
758
750
"name": "t",
759
- "policies": Array [],
760
751
"primary_keys": Array [],
761
752
"relationships": Array [],
762
753
"replica_identity": "DEFAULT",
@@ -899,7 +890,6 @@ test('primary keys', async () => {
899
890
"id": Any<Number>,
900
891
"live_rows_estimate": Any<Number>,
901
892
"name": "t",
902
- "policies": Array [],
903
893
"primary_keys": Array [
904
894
Object {
905
895
"name": "c",
0 commit comments