From 0b7bb885ccb9fe5726a85deb8462b36388b5ded8 Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Mon, 6 Sep 2021 15:49:38 +0200 Subject: [PATCH] fix unit test --- packages/worker/src/api/routes/tests/configs.spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/worker/src/api/routes/tests/configs.spec.js b/packages/worker/src/api/routes/tests/configs.spec.js index 10feb77b37..73c2903ced 100644 --- a/packages/worker/src/api/routes/tests/configs.spec.js +++ b/packages/worker/src/api/routes/tests/configs.spec.js @@ -4,7 +4,7 @@ const setup = require("./utilities") jest.mock("nodemailer") const nodemailer = require("nodemailer") nodemailer.createTransport.mockReturnValue({ - verify: jest.fn() + verify: jest.fn(), }) describe("/api/global/configs/checklist", () => { @@ -25,11 +25,11 @@ describe("/api/global/configs/checklist", () => { .set(config.defaultHeaders()) .expect("Content-Type", /json/) .expect(200) - + const checklist = res.body - expect(checklist.apps).toBe(0) - expect(checklist.smtp).toBe(true) - expect(checklist.adminUser).toBe(true) + expect(checklist.apps.checked).toBeFalsy() + expect(checklist.smtp.checked).toBeTruthy() + expect(checklist.adminUser.checked).toBeTruthy() }) -}) \ No newline at end of file +})