style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									9895d22521
								
							
						
					
					
						commit
						ee5f69cbc8
					
				
					 20 changed files with 188 additions and 192 deletions
				
			
		|  | @ -1,20 +1,20 @@ | |||
| import { describe, it, expect, beforeAll } from 'vitest'; | ||||
| import {StudentController} from "../../src/controllers/students"; | ||||
| import { describe, it, expect, beforeAll } from "vitest"; | ||||
| import { StudentController } from "../../src/controllers/students"; | ||||
| 
 | ||||
| const controller = new StudentController(); | ||||
| 
 | ||||
| describe('StudentController', () => { | ||||
| describe("StudentController", () => { | ||||
|     const newStudent = { | ||||
|         username: 'teststudent1', | ||||
|         firstName: 'Testy', | ||||
|         lastName: 'McTestface', | ||||
|         username: "teststudent1", | ||||
|         firstName: "Testy", | ||||
|         lastName: "McTestface", | ||||
|     }; | ||||
| 
 | ||||
|     beforeAll(() => { | ||||
|         // Start backend
 | ||||
|     }); | ||||
| 
 | ||||
|     it('creates a student and fetches it by username', async () => { | ||||
|     it("creates a student and fetches it by username", async () => { | ||||
|         // Create student
 | ||||
|         await controller.createStudent(newStudent); | ||||
| 
 | ||||
|  | @ -29,7 +29,6 @@ describe('StudentController', () => { | |||
|         expect(student.firstName).toBe(newStudent.firstName); | ||||
|         expect(student.lastName).toBe(newStudent.lastName); | ||||
| 
 | ||||
| 
 | ||||
|         await controller.deleteStudent(newStudent.username); | ||||
|     }); | ||||
| }); | ||||
|  |  | |||
|  | @ -1,20 +1,20 @@ | |||
| import { describe, it, expect, beforeAll } from 'vitest'; | ||||
| import {TeacherController} from "../../src/controllers/teachers"; | ||||
| import { describe, it, expect, beforeAll } from "vitest"; | ||||
| import { TeacherController } from "../../src/controllers/teachers"; | ||||
| 
 | ||||
| const controller = new TeacherController(); | ||||
| 
 | ||||
| describe('TeacherController', () => { | ||||
| describe("TeacherController", () => { | ||||
|     const newTeacher = { | ||||
|         username: 'testteacher3', | ||||
|         firstName: 'Testy', | ||||
|         lastName: 'McTestface', | ||||
|         username: "testteacher3", | ||||
|         firstName: "Testy", | ||||
|         lastName: "McTestface", | ||||
|     }; | ||||
| 
 | ||||
|     beforeAll(() => { | ||||
|         // Start backend
 | ||||
|     }); | ||||
| 
 | ||||
|     it('creates a student and fetches it by username', async () => { | ||||
|     it("creates a student and fetches it by username", async () => { | ||||
|         // Create student
 | ||||
|         await controller.createTeacher(newTeacher); | ||||
| 
 | ||||
|  | @ -29,7 +29,6 @@ describe('TeacherController', () => { | |||
|         expect(teacher.firstName).toBe(newTeacher.firstName); | ||||
|         expect(teacher.lastName).toBe(newTeacher.lastName); | ||||
| 
 | ||||
| 
 | ||||
|         await controller.deleteTeacher(newTeacher.username); | ||||
|     }); | ||||
| }); | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action