From 5b8ea1cdbeae4bb1b04f7a651f7210df2693afb5 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Tue, 5 Apr 2022 21:53:27 +0100 Subject: [PATCH] account event mocks --- packages/backend-core/src/events/handlers/index.js | 2 ++ packages/backend-core/src/tests/utilities/mocks/events.js | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/packages/backend-core/src/events/handlers/index.js b/packages/backend-core/src/events/handlers/index.js index dc2fd4ea10..8cd523e2c0 100644 --- a/packages/backend-core/src/events/handlers/index.js +++ b/packages/backend-core/src/events/handlers/index.js @@ -1,3 +1,4 @@ +const account = require("./account") const app = require("./app") const auth = require("./auth") const automation = require("./automation") @@ -14,6 +15,7 @@ const user = require("./user") const view = require("./view") module.exports = { + account, app, auth, automation, diff --git a/packages/backend-core/src/tests/utilities/mocks/events.js b/packages/backend-core/src/tests/utilities/mocks/events.js index 203af45497..97caac4171 100644 --- a/packages/backend-core/src/tests/utilities/mocks/events.js +++ b/packages/backend-core/src/tests/utilities/mocks/events.js @@ -1,5 +1,10 @@ jest.mock("../../../events", () => { return { + account: { + created: jest.fn(), + deleted: jest.fn(), + verified: jest.fn(), + }, app: { created: jest.fn(), updated: jest.fn(),