fix(backend): Falende testen gerepareerd.
This commit is contained in:
		
							parent
							
								
									fc675710b4
								
							
						
					
					
						commit
						ba725f67b2
					
				
					 4 changed files with 13 additions and 24 deletions
				
			
		|  | @ -33,7 +33,9 @@ describe('AssignmentRepository', () => { | |||
| 
 | ||||
|     it('should find all by username of the responsible teacher', async () => { | ||||
|         const result = await assignmentRepository.findAllByResponsibleTeacher("FooFighters") | ||||
|         const resultIds = result.map(it => it.id).sort(); | ||||
|         const resultIds = result | ||||
|                                                 .map(it => it.id) | ||||
|                                                 .sort((a, b) => (a ?? 0) - (b ?? 0)); | ||||
| 
 | ||||
|         expect(resultIds).toEqual([1, 3, 4]); | ||||
|     }); | ||||
|  |  | |||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger