Skip to content

Commit

Permalink
chore: remove unused imports and vars
Browse files Browse the repository at this point in the history
  • Loading branch information
francisvaut committed May 21, 2024
1 parent 8db35b0 commit 8715811
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 73 deletions.
1 change: 0 additions & 1 deletion frontend/src/test/unit/services/admin_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useAdmin } from '@/composables/services/admin.service';
import { User } from '@/types/users/User.ts';
Expand Down
6 changes: 0 additions & 6 deletions frontend/src/test/unit/services/assistant_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useAssistant } from '@/composables/services/assistant.service.ts';
import { Assistant } from '@/types/users/Assistant';

const {
assistants,
assistant,

getAssistantByID,
getAssistantsByCourse,
getAssistants,

createAssistant,
deleteAssistant,

assistantJoinCourse,
assistantLeaveCourse,
} = useAssistant();

function resetService(): void {
Expand Down
18 changes: 1 addition & 17 deletions frontend/src/test/unit/services/course_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { Course } from '@/types/Course.ts';

import { useCourses } from '@/composables/services/course.service.ts';

const {
pagination,
courses,
course,

getCourseByID,
searchCourses,
getCourses,
getCoursesByStudent,
getCoursesByTeacher,
getCourseByAssistant,

createCourse,
cloneCourse,
deleteCourse,
} = useCourses();
const { courses, course, getCourseByID, getCourses, getCoursesByStudent, createCourse } = useCourses();

function resetService(): void {
course.value = null;
Expand Down
11 changes: 1 addition & 10 deletions frontend/src/test/unit/services/faculty_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useFaculty } from '@/composables/services/faculty.service.ts';
import { Faculty } from '@/types/Faculty';

const {
faculties,
faculty,
getFacultyByID,
getFaculties,

createFaculty,
deleteFaculty,
} = useFaculty();
const { faculties, faculty, getFacultyByID, getFaculties, createFaculty } = useFaculty();

function resetService(): void {
faculty.value = null;
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/test/unit/services/structure_check.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useStructureCheck } from '@/composables/services/structure_check.service.ts';
import { StructureCheck } from '@/types/StructureCheck';
Expand All @@ -8,7 +7,6 @@ const {
structureCheck,
getStructureCheckByID,
getStructureCheckByProject,

createStructureCheck,
deleteStructureCheck,
} = useStructureCheck();
Expand Down
19 changes: 1 addition & 18 deletions frontend/src/test/unit/services/student_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useStudents } from '@/composables/services/student.service.ts';
import { Student } from '@/types/users/Student';

const {
students,
student,

getStudentByID,
getStudents,
getStudentsByCourse,
getStudentsByGroup,

createStudent,
deleteStudent,

studentJoinCourse,
studentLeaveCourse,
studentJoinGroup,
studentLeaveGroup,
} = useStudents();
const { students, student, getStudentByID, getStudents, getStudentsByCourse, createStudent } = useStudents();

function resetService(): void {
student.value = null;
Expand Down
1 change: 0 additions & 1 deletion frontend/src/test/unit/services/submission_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useSubmission } from '@/composables/services/submission.service.ts';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useSubmissionStatus } from '@/composables/services/submission_status.service.ts';

Expand Down
16 changes: 1 addition & 15 deletions frontend/src/test/unit/services/teacher_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useTeacher } from '@/composables/services/teacher.service.ts';

const {
teachers,
teacher,

getTeacherByID,
getTeachersByCourse,
getTeachers,

createTeacher,
deleteTeacher,

teacherJoinCourse,
teacherLeaveCourse,
} = useTeacher();
const { teachers, teacher, getTeacherByID, getTeachersByCourse, getTeachers } = useTeacher();

function resetService(): void {
teacher.value = null;
Expand Down
1 change: 0 additions & 1 deletion frontend/src/test/unit/types/group.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { Group } from '@/types/Group';
import { groupData } from './data';
Expand Down
1 change: 0 additions & 1 deletion frontend/src/test/unit/types/project.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { Project } from '@/types/Project';
import { projectData } from './data';
Expand Down

0 comments on commit 8715811

Please sign in to comment.