diff --git a/packages/server/src/migrations/functions/tests/quotas2.spec.js b/packages/server/src/migrations/functions/tests/syncQuotas.spec.js similarity index 62% rename from packages/server/src/migrations/functions/tests/quotas2.spec.js rename to packages/server/src/migrations/functions/tests/syncQuotas.spec.js index 552eba7701..76a40e4b28 100644 --- a/packages/server/src/migrations/functions/tests/quotas2.spec.js +++ b/packages/server/src/migrations/functions/tests/syncQuotas.spec.js @@ -2,11 +2,13 @@ const TestConfig = require("../../../tests/utilities/TestConfiguration") const syncApps = jest.fn() const syncRows = jest.fn() +const syncPlugins = jest.fn() jest.mock("../usageQuotas/syncApps", () => ({ run: syncApps }) ) -jest.mock("../usageQuotas/syncAppRows", () => ({ run: syncRows }) ) +jest.mock("../usageQuotas/syncRows", () => ({ run: syncRows }) ) +jest.mock("../usageQuotas/syncPlugins", () => ({ run: syncPlugins }) ) -const migration = require("../quotas2") +const migration = require("../syncQuotas") describe("run", () => { let config = new TestConfig(false) @@ -17,9 +19,10 @@ describe("run", () => { afterAll(config.end) - it("runs ", async () => { + it("run", async () => { await migration.run() expect(syncApps).toHaveBeenCalledTimes(1) expect(syncRows).toHaveBeenCalledTimes(1) + expect(syncPlugins).toHaveBeenCalledTimes(1) }) })