From 83c16a9f141ada195623ad31d720e0e0adb8c244 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 5 May 2021 17:49:53 +0100 Subject: [PATCH] Formatting. --- packages/server/src/automations/triggers.js | 4 +++- packages/worker/scripts/jestSetup.js | 2 +- packages/worker/src/api/routes/tests/utilities/index.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/server/src/automations/triggers.js b/packages/server/src/automations/triggers.js index f303856779..ca5e90ed14 100644 --- a/packages/server/src/automations/triggers.js +++ b/packages/server/src/automations/triggers.js @@ -1,7 +1,9 @@ const CouchDB = require("../db") const emitter = require("../events/index") const env = require("../environment") -const Queue = env.isTest() ? require("../utilities/queue/inMemoryQueue") : require("bull") +const Queue = env.isTest() + ? require("../utilities/queue/inMemoryQueue") + : require("bull") const { setQueues, BullAdapter } = require("bull-board") const { getAutomationParams } = require("../db/utils") const { coerce } = require("../utilities/rowProcessor") diff --git a/packages/worker/scripts/jestSetup.js b/packages/worker/scripts/jestSetup.js index 4e3b05b8f9..07648f693f 100644 --- a/packages/worker/scripts/jestSetup.js +++ b/packages/worker/scripts/jestSetup.js @@ -2,4 +2,4 @@ const env = require("../src/environment") env._set("NODE_ENV", "jest") env._set("JWT_SECRET", "test-jwtsecret") -env._set("LOG_LEVEL", "silent") \ No newline at end of file +env._set("LOG_LEVEL", "silent") diff --git a/packages/worker/src/api/routes/tests/utilities/index.js b/packages/worker/src/api/routes/tests/utilities/index.js index 90f95de49b..a639caef60 100644 --- a/packages/worker/src/api/routes/tests/utilities/index.js +++ b/packages/worker/src/api/routes/tests/utilities/index.js @@ -35,7 +35,7 @@ exports.emailMock = () => { const nodemailer = require("nodemailer") nodemailer.createTransport.mockReturnValue({ sendMail: sendMailMock, - verify: jest.fn() + verify: jest.fn(), }) return sendMailMock }