style: fix linting issues met Prettier
This commit is contained in:
parent
4a6b6ee061
commit
437c2ba2fe
9 changed files with 170 additions and 170 deletions
|
@ -1,25 +1,25 @@
|
|||
import { StudentController } from '../../src/controllers/students';
|
||||
import { beforeEach, describe, expect, it } from 'vitest';
|
||||
import { StudentController } from "../../src/controllers/students";
|
||||
import { beforeEach, describe, expect, it } from "vitest";
|
||||
|
||||
describe('Test controller students', () => {
|
||||
describe("Test controller students", () => {
|
||||
let controller: StudentController;
|
||||
|
||||
beforeEach(async () => {
|
||||
controller = new StudentController();
|
||||
});
|
||||
|
||||
it('Get students', async () => {
|
||||
it("Get students", async () => {
|
||||
const data = await controller.getAll(true);
|
||||
expect(data.students).to.have.length.greaterThan(0);
|
||||
});
|
||||
|
||||
it('Get student by username', async () => {
|
||||
const username = 'testleerling1';
|
||||
it("Get student by username", async () => {
|
||||
const username = "testleerling1";
|
||||
const data = await controller.getByUsername(username);
|
||||
expect(data.student.username).to.equal(username);
|
||||
});
|
||||
|
||||
it('Get classes of student', async () => {
|
||||
it("Get classes of student", async () => {
|
||||
const students = await controller.getAll(true);
|
||||
|
||||
for (const student of students.students) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue