Formatting.

This commit is contained in:
mike12345567 2021-05-05 17:49:53 +01:00
parent 96f036b720
commit 44db8cf9ec
3 changed files with 5 additions and 3 deletions

View File

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

View File

@ -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")
env._set("LOG_LEVEL", "silent")

View File

@ -35,7 +35,7 @@ exports.emailMock = () => {
const nodemailer = require("nodemailer")
nodemailer.createTransport.mockReturnValue({
sendMail: sendMailMock,
verify: jest.fn()
verify: jest.fn(),
})
return sendMailMock
}