-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/MuNuChapterHKN/HKrecruitment …
…into choose-interv
- Loading branch information
Showing
22 changed files
with
1,661 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,13 +31,6 @@ export const testDateTime1Hour = new Date(2023, 0, 1, 11, 30, 0); | |
export const testDateTime3Hours = new Date(2023, 0, 1, 13, 30, 0); | ||
export const testDateTimeEnd = new Date(2023, 0, 1, 11, 30, 0); | ||
|
||
export const mockTimeSlot = { | ||
start: testDateTimeStart, | ||
end: testDateTimeEnd, | ||
id: 1, | ||
availabilities: [], | ||
} as TimeSlot & { availabilities: any[] }; | ||
|
||
export const testInterviewStart = '11:55' as unknown as Date; | ||
export const testInterviewEnd = '20:35' as unknown as Date; | ||
export const testDay1 = '2024-10-20' as unknown as Date; | ||
|
@@ -57,6 +50,14 @@ export const mockRecruitmentSession = { | |
lastModified: testDateLastModified, | ||
}; | ||
|
||
export const mockTimeSlot = { | ||
recruitmentSession: mockRecruitmentSession, | ||
start: testDateTimeStart, | ||
end: testDateTimeEnd, | ||
id: 1, | ||
availabilities: [], | ||
} as TimeSlot & { availabilities: any[] }; | ||
|
||
export const mockCreateRecruitmentSessionDto = { | ||
slotDuration: 50, | ||
interviewStart: testInterviewStart, | ||
|
@@ -231,50 +232,3 @@ export const mockAvailability = { | |
export const mockCreateAvailabilityDto = { | ||
timeSlotId: mockTimeSlot.id, | ||
} as CreateAvailabilityDto; | ||
|
||
export const mockInterview: Interview = { | ||
id: 123, | ||
notes: 'qwerty', | ||
createdAt: new Date(2023, 0, 1), | ||
timeslot: mockTimeSlot, | ||
application: mockMscApplication, | ||
interviewer1: { | ||
oauthId: '123', | ||
firstName: 'Jane', | ||
lastName: 'Doe', | ||
sex: 'F', | ||
email: '[email protected]', | ||
is_board: true, | ||
is_expert: false, | ||
role: Role.Member, | ||
}, | ||
interviewer2: { | ||
oauthId: '456', | ||
firstName: 'John', | ||
lastName: 'Doe', | ||
sex: 'M', | ||
email: '[email protected]', | ||
is_board: false, | ||
is_expert: true, | ||
role: Role.Member, | ||
}, | ||
optionalInterviewer: { | ||
oauthId: '678', | ||
firstName: 'Jack', | ||
lastName: 'Dao', | ||
sex: 'M', | ||
email: '[email protected]', | ||
is_board: false, | ||
is_expert: false, | ||
role: Role.Member, | ||
}, | ||
}; | ||
|
||
export const MockCreateInterviewDTO: CreateInterviewDto = { | ||
createdAt: new Date(2023, 0, 1), | ||
timeslot_id: mockTimeSlot.id, | ||
}; | ||
|
||
export const MockUpdateInterviewDTO = { | ||
notes: 'Notes', | ||
} as UpdateInterviewDto; |
Oops, something went wrong.