From 2d460b3775bd21674dff9ad1067922ee339d96b8 Mon Sep 17 00:00:00 2001 From: Kevin Barnoin Date: Mon, 23 Dec 2024 18:23:42 +0100 Subject: [PATCH] fix: test types --- .../controllers/v2/applications.controller.v2.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/http/controllers/v2/applications.controller.v2.test.ts b/server/src/http/controllers/v2/applications.controller.v2.test.ts index 97a67aa1d..b840e4db5 100644 --- a/server/src/http/controllers/v2/applications.controller.v2.test.ts +++ b/server/src/http/controllers/v2/applications.controller.v2.test.ts @@ -1,5 +1,5 @@ import { ObjectId } from "mongodb" -import { IApplicationApiPublic, JOB_STATUS } from "shared" +import { IApplicationApiPrivate, JOB_STATUS } from "shared" import { NIVEAUX_POUR_LBA, RECRUITER_STATUS } from "shared/constants" import { LBA_ITEM_TYPE } from "shared/constants/lbaitem" import { applicationTestFile, wrongApplicationTestFile } from "shared/fixtures/application.fixture" @@ -118,7 +118,7 @@ describe("POST /v2/application", () => { }) it("Return 202 and create an application using a recruter lba", async () => { - const body: IApplicationApiPublic = { + const body: IApplicationApiPrivate = { applicant_attachment_name: "cv.pdf", applicant_attachment_content: applicationTestFile, applicant_email: "jeam.dupont@mail.com", @@ -174,7 +174,7 @@ describe("POST /v2/application", () => { it("Return 202 and create an application using a recruiter", async () => { const job = recruiter.jobs[0] - const body: IApplicationApiPublic = { + const body: IApplicationApiPrivate = { applicant_attachment_name: "cv.pdf", applicant_attachment_content: applicationTestFile, applicant_email: "jeam.dupont@mail.com", @@ -230,7 +230,7 @@ describe("POST /v2/application", () => { }) it("return 400 as file type is not supported", async () => { const job = recruiter.jobs[0] - const body: IApplicationApiPublic = { + const body: IApplicationApiPrivate = { applicant_attachment_name: "cv.pdf", applicant_attachment_content: wrongApplicationTestFile, applicant_email: "jeam.dupont@mail.com",