diff --git a/packages/worker/src/api/routes/system/tests/migrations.spec.ts b/packages/worker/src/api/routes/system/tests/migrations.spec.ts index 4198d65ee9..fe91a1070c 100644 --- a/packages/worker/src/api/routes/system/tests/migrations.spec.ts +++ b/packages/worker/src/api/routes/system/tests/migrations.spec.ts @@ -36,7 +36,7 @@ describe("/api/system/migrations", () => { it("runs migrations", async () => { const res = await config.api.migrations.runMigrations() - expect(res.text).toBe("OK") + expect(res.body.message).toBeDefined() expect(migrateFn).toHaveBeenCalledTimes(1) }) })