mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[Tests] add missing field due to type changes
This commit is contained in:
@@ -48,8 +48,10 @@ const createCredit = (
|
||||
credits: number,
|
||||
credittypecode: CreditTypeCode,
|
||||
date: Date
|
||||
): PopulationCourseStatsCredit =>
|
||||
createBaseCredit({ grade: '', credits, credittypecode, attainment_date: date, course_id: courseId })
|
||||
): PopulationCourseStatsCredit => ({
|
||||
...createBaseCredit({ grade: '', credits, credittypecode, attainment_date: date, course_id: courseId }),
|
||||
courseGroupId: idToGroupId[courseId],
|
||||
})
|
||||
|
||||
const STUDY_RIGHT_START = new Date('2024-08-01')
|
||||
|
||||
|
||||
@@ -71,6 +71,7 @@ export const createStudyRight = (overrides: Partial<StudentStudyRight> = {}): St
|
||||
export const createCourse = (overrides: Partial<StudentCourse> = {}): StudentCourse => ({
|
||||
course_id: 'hy-CU-000000001-2024-08-01',
|
||||
course_code: 'MAT001',
|
||||
courseGroupId: 'hy-CU-000000001',
|
||||
date: new Date('2024-08-01'),
|
||||
passed: true,
|
||||
grade: '5',
|
||||
|
||||
Reference in New Issue
Block a user