From 7d548b49ebb26d7ac3b7e64c1e98692a65193964 Mon Sep 17 00:00:00 2001 From: Matti Luukkainen Date: Sat, 27 Jan 2024 21:57:02 +0200 Subject: [PATCH] test fix --- server/models/lib/mock.js | 89 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 87 insertions(+), 2 deletions(-) diff --git a/server/models/lib/mock.js b/server/models/lib/mock.js index 256802c..a8da4cb 100644 --- a/server/models/lib/mock.js +++ b/server/models/lib/mock.js @@ -97,10 +97,95 @@ const mockData = { studyrights: { data: [ { - faculty_code: 'H50', + faculty_code: 'H40', elements: [ { - code: 'KH50_005', + code: 'KH40_005', + start_date: '2018-07-31T21:00:00.000Z', + end_date: '2025-07-30T21:00:00.000Z', + }, + ], + admission_date: '2017-06-30T21:00:00.000Z', + end_date: '2024-07-30T21:00:00.000Z', + start_date: '2018-07-31T21:00:00.000Z', + id: 'hy-opinoik-131106475', + }, + ], + }, + semesterEnrollments: { + md5: '12345', + status: 200, + elapsed: 0.002677027, + data: { + 'hy-opinoik-131106475': [ + { + semester_enrollment_type_code: 1, + semester_code: 137, + }, + { + semester_enrollment_type_code: 1, + semester_code: 138, + }, + { + semester_enrollment_type_code: 1, + semester_code: 139, + }, + { + semester_enrollment_type_code: 1, + semester_code: 140, + }, + { + semester_enrollment_type_code: 1, + semester_code: 141, + }, + { + semester_enrollment_type_code: 1, + semester_code: 142, + }, + { + semester_enrollment_type_code: 1, + semester_code: 143, + }, + { + semester_enrollment_type_code: 1, + semester_code: 144, + }, + { + semester_enrollment_type_code: 1, + semester_code: 145, + }, + { + semester_enrollment_type_code: 1, + semester_code: 146, + }, + { + semester_enrollment_type_code: 1, + semester_code: 147, + }, + { + semester_enrollment_type_code: 1, + semester_code: 148, + }, + { + semester_enrollment_type_code: 2, + semester_code: 149, + }, + { + semester_enrollment_type_code: 2, + semester_code: 150, + }, + ], + }, + }, + }, + 'matlu-non-fuksi': { + studyrights: { + data: [ + { + faculty_code: 'H40', + elements: [ + { + code: 'KH40_005', start_date: '2018-07-31T21:00:00.000Z', end_date: '2025-07-30T21:00:00.000Z', },