@@ -159,7 +159,7 @@ d("migrate-ts lifecycle against real Postgres", () => {
159159 expect ( orders1 . indexes . some ( ( i ) => i . unique && i . columns . includes ( "email" ) ) ) . toBe ( true ) ;
160160 // enum + numeric checks present
161161 expect ( checkExprs ( orders1 ) ) . toEqual (
162- [ "qty >= 1" , "status in 'open', 'closed'" ] . sort ( ) ,
162+ [ "qty >= 1" , "status in 'open','closed'" ] . sort ( ) ,
163163 ) ;
164164
165165 // ---- v2: evolve ---------------------------------------------------------
@@ -189,7 +189,7 @@ d("migrate-ts lifecycle against real Postgres", () => {
189189 expect ( orders2 . foreignKeys . some ( ( f ) => f . refTable === "lc_customers" ) ) . toBe ( true ) ;
190190 // evolved checks
191191 const c2 = checkExprs ( orders2 ) ;
192- expect ( c2 ) . toContain ( "status in 'open', 'closed', 'cancelled'" ) ;
192+ expect ( c2 ) . toContain ( "status in 'open','closed','cancelled'" ) ;
193193 expect ( c2 ) . toContain ( "qty >= 1 and qty <= 1000" ) ;
194194
195195 // ---- rollback v2 → v1 (down) --------------------------------------------
@@ -203,7 +203,7 @@ d("migrate-ts lifecycle against real Postgres", () => {
203203 expect ( colNames ( ordersBack ) ) . toEqual ( [ "email" , "id" , "qty" , "status" ] ) ; // note/customerId dropped
204204 expect ( ordersBack . foreignKeys ) . toHaveLength ( 0 ) ; // fk dropped
205205 expect ( checkExprs ( ordersBack ) ) . toEqual (
206- [ "qty >= 1" , "status in 'open', 'closed'" ] . sort ( ) , // original checks restored
206+ [ "qty >= 1" , "status in 'open','closed'" ] . sort ( ) , // original checks restored
207207 ) ;
208208
209209 // ---- idempotency: re-diff v1 against the live (rolled-back) DB ----------
@@ -326,7 +326,7 @@ d("migrate-ts lifecycle against real Postgres", () => {
326326 expect ( posts . foreignKeys . some ( ( f ) => f . refTable === "gf_users" ) ) . toBe ( true ) ;
327327 expect ( comments . foreignKeys . map ( ( f ) => f . refTable ) . sort ( ) ) . toEqual ( [ "gf_posts" , "gf_users" ] ) ;
328328 // enum + numeric checks + unique indexes survived the round-trip
329- expect ( checkExprs ( gf . find ( ( t ) => t . name === "gf_users" ) ! ) ) . toContain ( "role in 'admin', 'editor', 'viewer'" ) ;
329+ expect ( checkExprs ( gf . find ( ( t ) => t . name === "gf_users" ) ! ) ) . toContain ( "role in 'admin','editor','viewer'" ) ;
330330 expect ( checkExprs ( posts ) . some ( ( e ) => e . includes ( "views >= 0" ) ) ) . toBe ( true ) ;
331331 expect ( gf . find ( ( t ) => t . name === "gf_tags" ) ! . indexes . some ( ( i ) => i . unique && i . columns . includes ( "name" ) ) ) . toBe ( true ) ;
332332
0 commit comments