test(frontend): searchLearningPathsByAdmin

This commit is contained in:
Tibo De Peuter 2025-05-17 18:44:49 +02:00
parent 1639fbdabf
commit 965ba5dd20
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 30 additions and 1 deletions

View file

@ -14,10 +14,12 @@ import {
testLearningObjectMultipleChoice,
testLearningObjectPnNotebooks,
} from './learning-objects.testdata';
import { getLimpBizkit } from '../users/teachers.testdata';
export function makeTestLearningPaths(_em: EntityManager): LearningPath[] {
const learningPath01 = mapToLearningPath(testLearningPath01, []);
const learningPath02 = mapToLearningPath(testLearningPath02, []);
learningPath02.admins = [getLimpBizkit()];
const partiallyDatabasePartiallyDwengoApiLearningPath = mapToLearningPath(testPartiallyDatabaseAndPartiallyDwengoApiLearningPath, []);
const learningPathWithConditions = mapToLearningPath(testLearningPathWithConditions, []);