Skip to content

Commit 2d53432

Browse files
committed
format
1 parent 5296c38 commit 2d53432

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

packages/orm-cli/src/commands/db-migrate.test.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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 () => {

0 commit comments

Comments
 (0)