style: format en linting
This commit is contained in:
		
							parent
							
								
									4cb1469479
								
							
						
					
					
						commit
						e2bf413f35
					
				
					 22 changed files with 41 additions and 71 deletions
				
			
		|  | @ -1,7 +1,7 @@ | |||
| import { beforeAll, describe, expect, it } from 'vitest'; | ||||
| import { setupTestApp } from '../../setup-tests'; | ||||
| import { ClassJoinRequestRepository } from '../../../src/data/classes/class-join-request-repository'; | ||||
| import { getClassJoinRequestRepository, getClassRepository, getStudentRepository } from '../../../src/data/repositories'; | ||||
| import { getClassJoinRequestRepository } from '../../../src/data/repositories'; | ||||
| import { getPinkFloyd, getSmashingPumpkins } from '../../test_assets/users/students.testdata'; | ||||
| import { getClass02, getClass03 } from '../../test_assets/classes/classes.testdata'; | ||||
| import { getClassJoinRequest01, getClassJoinRequest02, getClassJoinRequest03 } from '../../test_assets/classes/class-join-requests.testdata'; | ||||
|  | @ -30,7 +30,7 @@ describe('ClassJoinRequestRepository', () => { | |||
|         const class_ = getClass02(); | ||||
|         const jr1 = getClassJoinRequest01(); | ||||
|         const jr2 = getClassJoinRequest02(); | ||||
|         const requests = await classJoinRequestRepository.findAllOpenRequestsTo(class_!); | ||||
|         const requests = await classJoinRequestRepository.findAllOpenRequestsTo(class_); | ||||
| 
 | ||||
|         expect(requests).toBeTruthy(); | ||||
|         expect(requests).toHaveLength(2); | ||||
|  | @ -41,9 +41,9 @@ describe('ClassJoinRequestRepository', () => { | |||
|     it('should not find a removed request', async () => { | ||||
|         const studentUsed = getSmashingPumpkins(); | ||||
|         const class_ = getClass03(); | ||||
|         await classJoinRequestRepository.deleteBy(studentUsed!, class_!); | ||||
|         await classJoinRequestRepository.deleteBy(studentUsed, class_); | ||||
| 
 | ||||
|         const request = await classJoinRequestRepository.findAllRequestsBy(studentUsed!); | ||||
|         const request = await classJoinRequestRepository.findAllRequestsBy(studentUsed); | ||||
| 
 | ||||
|         expect(request).toHaveLength(0); | ||||
|     }); | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| import { beforeAll, describe, expect, it } from 'vitest'; | ||||
| import { setupTestApp } from '../../setup-tests'; | ||||
| import { getTeacherInvitationRepository, getTeacherRepository } from '../../../src/data/repositories'; | ||||
| import { getTeacherInvitationRepository } from '../../../src/data/repositories'; | ||||
| import { TeacherInvitationRepository } from '../../../src/data/classes/teacher-invitation-repository'; | ||||
| import { getFooFighters, getLimpBizkit } from '../../test_assets/users/teachers.testdata'; | ||||
| import { getTeacherInvitation01, getTeacherInvitation02, getTeacherInvitation03 } from '../../test_assets/classes/teacher-invitations.testdata'; | ||||
|  | @ -18,7 +18,7 @@ describe('ClassRepository', () => { | |||
|         const teacher = getLimpBizkit(); | ||||
|         const ti1 = getTeacherInvitation01(); | ||||
|         const ti2 = getTeacherInvitation02(); | ||||
|         const invitations = await teacherInvitationRepository.findAllInvitationsBy(teacher!); | ||||
|         const invitations = await teacherInvitationRepository.findAllInvitationsBy(teacher); | ||||
| 
 | ||||
|         expect(invitations).toBeTruthy(); | ||||
|         expect(invitations).toHaveLength(2); | ||||
|  | @ -30,7 +30,7 @@ describe('ClassRepository', () => { | |||
|         const teacher = getFooFighters(); | ||||
|         const ti1 = getTeacherInvitation01(); | ||||
|         const ti2 = getTeacherInvitation03(); | ||||
|         const invitations = await teacherInvitationRepository.findAllInvitationsFor(teacher!); | ||||
|         const invitations = await teacherInvitationRepository.findAllInvitationsFor(teacher); | ||||
| 
 | ||||
|         expect(invitations).toBeTruthy(); | ||||
|         expect(invitations).toHaveLength(2); | ||||
|  | @ -42,7 +42,7 @@ describe('ClassRepository', () => { | |||
|         const class_ = getClass02(); | ||||
|         const ti1 = getTeacherInvitation01(); | ||||
|         const ti2 = getTeacherInvitation02(); | ||||
|         const invitations = await teacherInvitationRepository.findAllInvitationsForClass(class_!); | ||||
|         const invitations = await teacherInvitationRepository.findAllInvitationsForClass(class_); | ||||
| 
 | ||||
|         expect(invitations).toBeTruthy(); | ||||
|         expect(invitations).toHaveLength(2); | ||||
|  | @ -55,9 +55,9 @@ describe('ClassRepository', () => { | |||
|         const class_ = getClass01(); | ||||
|         const sender = getFooFighters(); | ||||
|         const receiver = getLimpBizkit(); | ||||
|         await teacherInvitationRepository.deleteBy(class_!, sender!, receiver!); | ||||
|         await teacherInvitationRepository.deleteBy(class_, sender, receiver); | ||||
| 
 | ||||
|         const invitation = await teacherInvitationRepository.findAllInvitationsBy(sender!); | ||||
|         const invitation = await teacherInvitationRepository.findAllInvitationsBy(sender); | ||||
| 
 | ||||
|         expect(invitation).toHaveLength(0); | ||||
|     }); | ||||
|  |  | |||
		Reference in a new issue
	
	 laurejablonski
						laurejablonski