style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									e58835aa17
								
							
						
					
					
						commit
						e73d5c21c3
					
				
					 34 changed files with 103 additions and 296 deletions
				
			
		|  | @ -33,11 +33,7 @@ describe('SubmissionRepository', () => { | |||
| 
 | ||||
|     it('should find the requested submission', async () => { | ||||
|         const id = new LearningObjectIdentifier('id03', Language.English, '1'); | ||||
|         const submission = | ||||
|             await submissionRepository.findSubmissionByLearningObjectAndSubmissionNumber( | ||||
|                 id, | ||||
|                 1 | ||||
|             ); | ||||
|         const submission = await submissionRepository.findSubmissionByLearningObjectAndSubmissionNumber(id, 1); | ||||
| 
 | ||||
|         expect(submission).toBeTruthy(); | ||||
|         expect(submission?.content).toBe('sub1'); | ||||
|  | @ -46,11 +42,7 @@ describe('SubmissionRepository', () => { | |||
|     it('should find the most recent submission for a student', async () => { | ||||
|         const id = new LearningObjectIdentifier('id02', Language.English, '1'); | ||||
|         const student = await studentRepository.findByUsername('Noordkaap'); | ||||
|         const submission = | ||||
|             await submissionRepository.findMostRecentSubmissionForStudent( | ||||
|                 id, | ||||
|                 student! | ||||
|             ); | ||||
|         const submission = await submissionRepository.findMostRecentSubmissionForStudent(id, student!); | ||||
| 
 | ||||
|         expect(submission).toBeTruthy(); | ||||
|         expect(submission?.submissionTime.getDate()).toBe(25); | ||||
|  | @ -59,19 +51,9 @@ describe('SubmissionRepository', () => { | |||
|     it('should find the most recent submission for a group', async () => { | ||||
|         const id = new LearningObjectIdentifier('id03', Language.English, '1'); | ||||
|         const class_ = await classRepository.findById('id01'); | ||||
|         const assignment = await assignmentRepository.findByClassAndId( | ||||
|             class_!, | ||||
|             1 | ||||
|         ); | ||||
|         const group = await groupRepository.findByAssignmentAndGroupNumber( | ||||
|             assignment!, | ||||
|             1 | ||||
|         ); | ||||
|         const submission = | ||||
|             await submissionRepository.findMostRecentSubmissionForGroup( | ||||
|                 id, | ||||
|                 group! | ||||
|             ); | ||||
|         const assignment = await assignmentRepository.findByClassAndId(class_!, 1); | ||||
|         const group = await groupRepository.findByAssignmentAndGroupNumber(assignment!, 1); | ||||
|         const submission = await submissionRepository.findMostRecentSubmissionForGroup(id, group!); | ||||
| 
 | ||||
|         expect(submission).toBeTruthy(); | ||||
|         expect(submission?.submissionTime.getDate()).toBe(25); | ||||
|  | @ -79,16 +61,9 @@ describe('SubmissionRepository', () => { | |||
| 
 | ||||
|     it('should not find a deleted submission', async () => { | ||||
|         const id = new LearningObjectIdentifier('id01', Language.English, '1'); | ||||
|         await submissionRepository.deleteSubmissionByLearningObjectAndSubmissionNumber( | ||||
|             id, | ||||
|             1 | ||||
|         ); | ||||
|         await submissionRepository.deleteSubmissionByLearningObjectAndSubmissionNumber(id, 1); | ||||
| 
 | ||||
|         const submission = | ||||
|             await submissionRepository.findSubmissionByLearningObjectAndSubmissionNumber( | ||||
|                 id, | ||||
|                 1 | ||||
|             ); | ||||
|         const submission = await submissionRepository.findSubmissionByLearningObjectAndSubmissionNumber(id, 1); | ||||
| 
 | ||||
|         expect(submission).toBeNull(); | ||||
|     }); | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action