@@ -31,8 +31,8 @@ describe("postgres tests", () => {
31
31
await exec (
32
32
`pnpm start pull --output ./${ output } --connectionString ${ connectionString } /bookstore_db --schemas bookstore` ,
33
33
) ;
34
- const entitiesDir = `./${ output } /entities`
35
- const enumsDir = `./${ output } /enums`
34
+ const entitiesDir = `./${ output } /entities` ;
35
+ const enumsDir = `./${ output } /enums` ;
36
36
37
37
const entitiesLs = await exec ( `ls ${ entitiesDir } ` ) ;
38
38
expect ( lsOutputToArray ( entitiesLs . stdout ) ) . toStrictEqual ( [
@@ -50,11 +50,9 @@ describe("postgres tests", () => {
50
50
"index.ts" ,
51
51
] ) ;
52
52
53
-
54
- const bookGenreFile = await exec (
55
- `cat ${ enumsDir } /BookGenre.ts` ,
56
- ) ;
57
- expect ( bookGenreFile . stdout ) . toStrictEqual ( `import { ValueListFieldType } from 'remult'
53
+ const bookGenreFile = await exec ( `cat ${ enumsDir } /BookGenre.ts` ) ;
54
+ expect ( bookGenreFile . stdout )
55
+ . toStrictEqual ( `import { ValueListFieldType } from 'remult'
58
56
59
57
@ValueListFieldType()
60
58
export class BookGenre {
@@ -69,11 +67,9 @@ export class BookGenre {
69
67
70
68
constructor(public id: string, public caption: string) {}
71
69
}
72
- ` )
70
+ ` ) ;
73
71
74
- const authorFile = await exec (
75
- `cat ${ entitiesDir } /Bookstore_Author.ts` ,
76
- ) ;
72
+ const authorFile = await exec ( `cat ${ entitiesDir } /Bookstore_Author.ts` ) ;
77
73
expect ( authorFile . stdout ) . toStrictEqual (
78
74
`import { Entity, Fields } from 'remult'
79
75
import { Relations } from 'remult'
@@ -187,9 +183,7 @@ export class Bookstore_Customer {
187
183
}
188
184
` ) ;
189
185
190
- const orderFile = await exec (
191
- `cat ${ entitiesDir } /Bookstore_Order.ts` ,
192
- ) ;
186
+ const orderFile = await exec ( `cat ${ entitiesDir } /Bookstore_Order.ts` ) ;
193
187
expect ( orderFile . stdout )
194
188
. toStrictEqual ( `import { Entity, Field, Fields } from 'remult'
195
189
import { Relations } from 'remult'
0 commit comments