fix unit test

This commit is contained in:
Maurits Lourens 2021-09-06 15:49:38 +02:00
parent dafd06737c
commit 0b7bb885cc
1 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@ const setup = require("./utilities")
jest.mock("nodemailer") jest.mock("nodemailer")
const nodemailer = require("nodemailer") const nodemailer = require("nodemailer")
nodemailer.createTransport.mockReturnValue({ nodemailer.createTransport.mockReturnValue({
verify: jest.fn() verify: jest.fn(),
}) })
describe("/api/global/configs/checklist", () => { describe("/api/global/configs/checklist", () => {
@ -28,8 +28,8 @@ describe("/api/global/configs/checklist", () => {
const checklist = res.body const checklist = res.body
expect(checklist.apps).toBe(0) expect(checklist.apps.checked).toBeFalsy()
expect(checklist.smtp).toBe(true) expect(checklist.smtp.checked).toBeTruthy()
expect(checklist.adminUser).toBe(true) expect(checklist.adminUser.checked).toBeTruthy()
}) })
}) })