From 679c95b0a07078cd0832138d99ff8a1e285226b0 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sat, 17 May 2025 20:40:19 +0200 Subject: [PATCH] fix(backend): Hernoem geteste functie --- .../learning-path/database-learning-path-provider.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/tests/services/learning-path/database-learning-path-provider.test.ts b/backend/tests/services/learning-path/database-learning-path-provider.test.ts index 59843701..e37b5748 100644 --- a/backend/tests/services/learning-path/database-learning-path-provider.test.ts +++ b/backend/tests/services/learning-path/database-learning-path-provider.test.ts @@ -148,16 +148,16 @@ describe('DatabaseLearningPathProvider', () => { }); }); - describe('searchLearningPathsByAdmin', () => { + describe('getLearningPathsAdministratedBy', () => { it('returns the learning path owned by the admin', async () => { const expectedLearningPath = mapToLearningPath(testLearningPath02, [mapToTeacherDTO(teacherB)]); - const result = await databaseLearningPathProvider.searchLearningPathsByAdmin([teacherB], expectedLearningPath.language); + const result = await databaseLearningPathProvider.getLearningPathsAdministratedBy([teacherB], expectedLearningPath.language); expect(result.length).toBe(1); expect(result[0].title).toBe(expectedLearningPath.title); expect(result[0].description).toBe(expectedLearningPath.description); }); it('returns an empty result when querying admins that do not have custom learning paths', async () => { - const result = await databaseLearningPathProvider.searchLearningPathsByAdmin([teacherA], testLearningPath.language); + const result = await databaseLearningPathProvider.getLearningPathsAdministratedBy([teacherA], testLearningPath.language); expect(result.length).toBe(0); }); });