fix: Test- en linting-errors opgelost

This commit is contained in:
Gerald Schmittinger 2025-04-18 23:47:56 +02:00
parent ce5c0ea629
commit ba912c3ef0
20 changed files with 103 additions and 116 deletions

View file

@ -75,26 +75,26 @@ let group04: Group;
let group05: Group;
let group1ConditionalLearningPath: Group;
export function getTestGroup01() {
export function getTestGroup01(): Group {
return group01;
}
export function getTestGroup02() {
export function getTestGroup02(): Group {
return group02;
}
export function getTestGroup03() {
export function getTestGroup03(): Group {
return group03;
}
export function getTestGroup04() {
export function getTestGroup04(): Group {
return group04;
}
export function getTestGroup05() {
export function getTestGroup05(): Group {
return group05;
}
export function getGroup1ConditionalLearningPath() {
export function getGroup1ConditionalLearningPath(): Group {
return group1ConditionalLearningPath;
}

View file

@ -1,5 +1,5 @@
<div class="learning-object-gift">
<div id="gift-q1" class="gift-question">
<div id="gift-q1" class="gift-question gift-question-type-Essay">
<h2 id="gift-q1-title" class="gift-title">Reflection</h2>
<p id="gift-q1-stem" class="gift-stem">Reflect on this learning path. What have you learned today?</p>
<textarea id="gift-q1-answer" class="gift-essay-answer"></textarea>

View file

@ -1,5 +1,5 @@
<div class="learning-object-gift">
<div id="gift-q1" class="gift-question">
<div id="gift-q1" class="gift-question gift-question-type-MC">
<h2 id="gift-q1-title" class="gift-title">Self-evaluation</h2>
<p id="gift-q1-stem" class="gift-stem">Are you following along well?</p>
<div class="gift-choice-div">

View file

@ -176,7 +176,7 @@ export const testLearningPathWithConditions: LearningPathDTO = {
title: 'Example learning path with conditional transitions',
description: 'This learning path was made for the purpose of testing conditional transitions',
keywords: "test",
target_ages: [18, 19, 20, 21],
target_ages: [10, 11, 12, 13, 14, 15, 16, 17, 18],
nodes: [
{
learningobject_hruid: testLearningObjectMultipleChoice.hruid,

View file

@ -24,5 +24,5 @@ export function makeTestStudents(em: EntityManager): Student[] {
}
export function getTestleerling1(): Student {
return testStudents.find(it => it.username == "testleerling1");
return testStudents.find(it => it.username === "testleerling1");
}