Skip to content

Commit

Permalink
mock
Browse files Browse the repository at this point in the history
  • Loading branch information
whiitex committed Jan 7, 2024
1 parent f3aedbf commit 70964e7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions shared/src/recruitment-session.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import {
RecruitmentSession,
RecruitmentSessionState,
createRecruitmentSessionSchema,
applyAbilitiesOnRecruitmentSession
} from "./recruitment-session";
import { createMockAbility } from "./abilities.spec";
import { Action, UserAuth, checkAbility } from "./abilities";

describe("RecruitmentSession", () => {
describe("createRecruitmentSessionSchema", () => {
const mockRecSess: Partial<RecruitmentSession> = {
state: RecruitmentSessionState.Active,
slotDuration: 5,
interviewStart: new Date("15:20"),
interviewEnd: new Date("16:30"),
lastModified: new Date("2000-10-20 15:10")
};

it("prova", () => {
expect(createRecruitmentSessionSchema.validate(mockRecSess)).not.toHaveProperty("erroe");
})


})


})

0 comments on commit 70964e7

Please sign in to comment.