test: testen voor group repo slagen
This commit is contained in:
		
							parent
							
								
									0a1bc7c6ea
								
							
						
					
					
						commit
						985050a224
					
				
					 1 changed files with 14 additions and 13 deletions
				
			
		|  | @ -52,19 +52,20 @@ describe('GroupRepository', () => { | ||||||
|         expect(groups).toHaveLength(3); |         expect(groups).toHaveLength(3); | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|     // it('should not find removed group', async () => {
 |     it('should not find removed group', async () => { | ||||||
|     //     const class_ = await ClassRepository.findById('id02');
 |         const class_ = await ClassRepository.findById('id02'); | ||||||
|     //     const assignment = await AssignmentRepository.findByClassAndId(
 |         const assignment = await AssignmentRepository.findByClassAndId( | ||||||
|     //         class_!,
 |             class_!, | ||||||
|     //         1
 |             2 | ||||||
|     //     );
 |         ); | ||||||
|     //     await GroupRepository.deleteByAssignmentAndGroupNumber(assignment!, 1);
 |  | ||||||
| 
 | 
 | ||||||
|     //     const group = await GroupRepository.findByAssignmentAndGroupNumber(
 |         await GroupRepository.deleteByAssignmentAndGroupNumber(assignment!, 1); | ||||||
|     //         assignment!,
 |  | ||||||
|     //         1
 |  | ||||||
|     //     );
 |  | ||||||
| 
 | 
 | ||||||
|     //     expect(group).toBeNull();
 |         const group = await GroupRepository.findByAssignmentAndGroupNumber( | ||||||
|     // });
 |             assignment!, | ||||||
|  |             1 | ||||||
|  |         ); | ||||||
|  | 
 | ||||||
|  |         expect(group).toBeNull(); | ||||||
|  |     }); | ||||||
| }); | }); | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Laure Jablonski
						Laure Jablonski