refactor(backend): DatabaseLearningPathProvider (& gerelateerde) overzichtelijker gemaakt.

This commit is contained in:
Gerald Schmittinger 2025-03-17 23:11:01 +01:00
parent 46e9e8d6a0
commit 01b3fab568
4 changed files with 298 additions and 60 deletions

View file

@ -12,7 +12,6 @@ import learningObjectExample from '../../test-assets/learning-objects/pn-werking
import learningPathExample from '../../test-assets/learning-paths/pn-werking-example.js';
import databaseLearningPathProvider from '../../../src/services/learning-paths/database-learning-path-provider.js';
import { expectToBeCorrectLearningPath } from '../../test-utils/expectations.js';
import { LearningObjectRepository } from '../../../src/data/content/learning-object-repository.js';
import learningObjectService from '../../../src/services/learning-objects/learning-object-service.js';
import { Language } from '../../../src/entities/content/language.js';
import {
@ -106,7 +105,6 @@ function expectBranchingObjectNode(
}
describe('DatabaseLearningPathProvider', () => {
let learningObjectRepo: LearningObjectRepository;
let example: { learningObject: LearningObject; learningPath: LearningPath };
let persTestData: { learningContent: ConditionTestLearningPathAndLearningObjects; studentA: Student; studentB: Student };
@ -114,7 +112,6 @@ describe('DatabaseLearningPathProvider', () => {
await setupTestApp();
example = await initExampleData();
persTestData = await initPersonalizationTestData();
learningObjectRepo = getLearningObjectRepository();
});
describe('fetchLearningPaths', () => {