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); }); });