File tree Expand file tree Collapse file tree
packages/orm-cli/src/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ describe("db migrate", () => {
8282 "utf8" ,
8383 ) as string ;
8484
85- expect ( content ) . toEqual ( unindent `
85+ expect ( content . trim ( ) ) . toEqual (
86+ unindent `
8687 CREATE SCHEMA IF NOT EXISTS "${ schema } ";
8788
8889 CREATE TABLE "${ schema } "."user" (
@@ -91,7 +92,8 @@ describe("db migrate", () => {
9192 "name" text,
9293 PRIMARY KEY ("id")
9394 );
94- ` + "\n" ) ;
95+ ` ,
96+ ) ;
9597 } ) ;
9698
9799 test ( "runs pending migrations" , async ( ) => {
@@ -238,9 +240,11 @@ describe("db migrate", () => {
238240 "utf8" ,
239241 ) as string ;
240242
241- expect ( content ) . toEqual ( unindent `
243+ expect ( content . trim ( ) ) . toEqual (
244+ unindent `
242245 ALTER TABLE "${ schema } "."user" ADD COLUMN "createdAt" timestamptz NOT NULL DEFAULT now();
243- ` + "\n" ) ;
246+ ` ,
247+ ) ;
244248 } ) ;
245249
246250 test ( "multiple migrations are applied in order" , async ( ) => {
You can’t perform that action at this time.
0 commit comments