mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[ComponentTests] Fix broken tests
This commit is contained in:
committed by
Aaro Koivukangas
parent
34dc354165
commit
c869520020
@@ -37,14 +37,22 @@ test.describe('Course statistics search', () => {
|
||||
const json = {
|
||||
courses: [
|
||||
{
|
||||
id: 'tkt10002-id',
|
||||
groupId: 'hy-CU-tkt10002',
|
||||
code: 'TKT10002',
|
||||
name: { fi: 'Ohjelmoinnin perusteet' },
|
||||
substitution_groups: [],
|
||||
substitutionGroups: [],
|
||||
minAttainmentDate: new Date('2021-08-01').toISOString(),
|
||||
maxAttainmentDate: new Date('2022-08-01').toISOString(),
|
||||
},
|
||||
{
|
||||
id: 'tkt10003-id',
|
||||
groupId: 'hy-CU-tkt10003',
|
||||
code: 'TKT10003',
|
||||
name: { fi: 'Ohjelmoinnin jatkokurssi' },
|
||||
substitution_groups: [],
|
||||
substitutionGroups: [],
|
||||
minAttainmentDate: new Date('2021-08-01').toISOString(),
|
||||
maxAttainmentDate: new Date('2022-08-01').toISOString(),
|
||||
},
|
||||
],
|
||||
}
|
||||
@@ -115,18 +123,22 @@ test.describe('Course statistics', () => {
|
||||
const json = {
|
||||
courses: [
|
||||
{
|
||||
id: 'tkt10002-id',
|
||||
groupId: 'hy-CU-tkt10002',
|
||||
code: 'TKT10002',
|
||||
name: { fi: 'Ohjelmoinnin perusteet' },
|
||||
substitution_groups: [],
|
||||
min_attainment_date: new Date('2021-08-01').toString(),
|
||||
max_attainment_date: new Date('2022-08-01').toString(),
|
||||
substitutionGroups: [],
|
||||
minAttainmentDate: new Date('2021-08-01').toISOString(),
|
||||
maxAttainmentDate: new Date('2022-08-01').toISOString(),
|
||||
},
|
||||
{
|
||||
id: 'tkt10003-id',
|
||||
groupId: 'hy-CU-tkt10003',
|
||||
code: 'TKT10003',
|
||||
name: { fi: 'Ohjelmoinnin jatkokurssi' },
|
||||
substitution_groups: [],
|
||||
min_attainment_date: new Date('2021-08-01').toString(),
|
||||
max_attainment_date: new Date('2022-08-01').toString(),
|
||||
substitutionGroups: [],
|
||||
minAttainmentDate: new Date('2021-08-01').toISOString(),
|
||||
maxAttainmentDate: new Date('2022-08-01').toISOString(),
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user