test: attachment repo is getest
This commit is contained in:
		
							parent
							
								
									f605abb1ec
								
							
						
					
					
						commit
						14d3772dca
					
				
					 1 changed files with 12 additions and 16 deletions
				
			
		|  | @ -19,21 +19,17 @@ describe('AttachmentRepository', () => { | ||||||
|         LearningObjectRepository = getLearningObjectRepository(); |         LearningObjectRepository = getLearningObjectRepository(); | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|     it('this replaces tests that are not succeeding because of problem', async () => { |     it('should return the requested attachment', async () => { | ||||||
|         expect(true); |         const id = new LearningObjectIdentifier('id02', Language.English, '1'); | ||||||
|  |         const learningObject = | ||||||
|  |             await LearningObjectRepository.findByIdentifier(id); | ||||||
|  | 
 | ||||||
|  |         const attachment = | ||||||
|  |             await AttachmentRepository.findByLearningObjectAndNumber( | ||||||
|  |                 learningObject!, | ||||||
|  |                 1 | ||||||
|  |             ); | ||||||
|  | 
 | ||||||
|  |         expect(attachment).toBeTruthy(); | ||||||
|     }); |     }); | ||||||
| 
 |  | ||||||
|     // it('should return the requested attachment', async () => {
 |  | ||||||
|     //     const id = new LearningObjectIdentifier('id02', Language.English, '1');
 |  | ||||||
|     //     const learningObject =
 |  | ||||||
|     //         await LearningObjectRepository.findByIdentifier(id);
 |  | ||||||
| 
 |  | ||||||
|     //     const attachment =
 |  | ||||||
|     //         await AttachmentRepository.findByLearningObjectAndNumber(
 |  | ||||||
|     //             learningObject!,
 |  | ||||||
|     //             1
 |  | ||||||
|     //         );
 |  | ||||||
| 
 |  | ||||||
|     //     expect(attachment).toBeTruthy();
 |  | ||||||
|     // });
 |  | ||||||
| }); | }); | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Laure Jablonski
						Laure Jablonski