Skip to content

Commit

Permalink
fix: test types
Browse files Browse the repository at this point in the history
  • Loading branch information
kevbarns committed Dec 23, 2024
1 parent e81dda9 commit 2d460b3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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: "[email protected]",
Expand Down Expand Up @@ -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: "[email protected]",
Expand Down Expand Up @@ -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: "[email protected]",
Expand Down

0 comments on commit 2d460b3

Please sign in to comment.