1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +12:00
This commit is contained in:
Rory Powell 2022-09-28 14:03:05 +01:00
parent d87e3904ae
commit e85e3828fd

View file

@ -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)
})
})