Formatting.
This commit is contained in:
parent
96f036b720
commit
44db8cf9ec
|
@ -1,7 +1,9 @@
|
||||||
const CouchDB = require("../db")
|
const CouchDB = require("../db")
|
||||||
const emitter = require("../events/index")
|
const emitter = require("../events/index")
|
||||||
const env = require("../environment")
|
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 { setQueues, BullAdapter } = require("bull-board")
|
||||||
const { getAutomationParams } = require("../db/utils")
|
const { getAutomationParams } = require("../db/utils")
|
||||||
const { coerce } = require("../utilities/rowProcessor")
|
const { coerce } = require("../utilities/rowProcessor")
|
||||||
|
|
|
@ -2,4 +2,4 @@ const env = require("../src/environment")
|
||||||
|
|
||||||
env._set("NODE_ENV", "jest")
|
env._set("NODE_ENV", "jest")
|
||||||
env._set("JWT_SECRET", "test-jwtsecret")
|
env._set("JWT_SECRET", "test-jwtsecret")
|
||||||
env._set("LOG_LEVEL", "silent")
|
env._set("LOG_LEVEL", "silent")
|
||||||
|
|
|
@ -35,7 +35,7 @@ exports.emailMock = () => {
|
||||||
const nodemailer = require("nodemailer")
|
const nodemailer = require("nodemailer")
|
||||||
nodemailer.createTransport.mockReturnValue({
|
nodemailer.createTransport.mockReturnValue({
|
||||||
sendMail: sendMailMock,
|
sendMail: sendMailMock,
|
||||||
verify: jest.fn()
|
verify: jest.fn(),
|
||||||
})
|
})
|
||||||
return sendMailMock
|
return sendMailMock
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue