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",