fix(backend): Hernoem geteste functie
This commit is contained in:
		
							parent
							
								
									1f05935418
								
							
						
					
					
						commit
						679c95b0a0
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -148,16 +148,16 @@ describe('DatabaseLearningPathProvider', () => { | ||||||
|         }); |         }); | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|     describe('searchLearningPathsByAdmin', () => { |     describe('getLearningPathsAdministratedBy', () => { | ||||||
|         it('returns the learning path owned by the admin', async () => { |         it('returns the learning path owned by the admin', async () => { | ||||||
|             const expectedLearningPath = mapToLearningPath(testLearningPath02, [mapToTeacherDTO(teacherB)]); |             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.length).toBe(1); | ||||||
|             expect(result[0].title).toBe(expectedLearningPath.title); |             expect(result[0].title).toBe(expectedLearningPath.title); | ||||||
|             expect(result[0].description).toBe(expectedLearningPath.description); |             expect(result[0].description).toBe(expectedLearningPath.description); | ||||||
|         }); |         }); | ||||||
|         it('returns an empty result when querying admins that do not have custom learning paths', async () => { |         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); |             expect(result.length).toBe(0); | ||||||
|         }); |         }); | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
		Reference in a new issue