From 87158119a09a310e0f28d49c112659a441bd951b Mon Sep 17 00:00:00 2001 From: francis Date: Tue, 21 May 2024 18:42:21 +0200 Subject: [PATCH] chore: remove unused imports and vars --- .../test/unit/services/admin_service.test.ts | 1 - .../unit/services/assistant_service.test.ts | 6 ------ .../test/unit/services/course_service.test.ts | 18 +----------------- .../unit/services/faculty_service.test.ts | 11 +---------- .../unit/services/structure_check.test.ts | 2 -- .../unit/services/student_service.test.ts | 19 +------------------ .../unit/services/submission_service.test.ts | 1 - .../submission_status_service.test.ts | 1 - .../unit/services/teacher_service.test.ts | 16 +--------------- frontend/src/test/unit/types/group.test.ts | 1 - frontend/src/test/unit/types/project.test.ts | 1 - 11 files changed, 4 insertions(+), 73 deletions(-) diff --git a/frontend/src/test/unit/services/admin_service.test.ts b/frontend/src/test/unit/services/admin_service.test.ts index e9e51d41..61230f54 100644 --- a/frontend/src/test/unit/services/admin_service.test.ts +++ b/frontend/src/test/unit/services/admin_service.test.ts @@ -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'; diff --git a/frontend/src/test/unit/services/assistant_service.test.ts b/frontend/src/test/unit/services/assistant_service.test.ts index 27874d7a..0cb5e9a0 100644 --- a/frontend/src/test/unit/services/assistant_service.test.ts +++ b/frontend/src/test/unit/services/assistant_service.test.ts @@ -1,4 +1,3 @@ -/* 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'; @@ -6,16 +5,11 @@ import { Assistant } from '@/types/users/Assistant'; const { assistants, assistant, - getAssistantByID, getAssistantsByCourse, getAssistants, - createAssistant, deleteAssistant, - - assistantJoinCourse, - assistantLeaveCourse, } = useAssistant(); function resetService(): void { diff --git a/frontend/src/test/unit/services/course_service.test.ts b/frontend/src/test/unit/services/course_service.test.ts index bbbb81de..39cf368e 100644 --- a/frontend/src/test/unit/services/course_service.test.ts +++ b/frontend/src/test/unit/services/course_service.test.ts @@ -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; diff --git a/frontend/src/test/unit/services/faculty_service.test.ts b/frontend/src/test/unit/services/faculty_service.test.ts index be6359d1..b9ce9c62 100644 --- a/frontend/src/test/unit/services/faculty_service.test.ts +++ b/frontend/src/test/unit/services/faculty_service.test.ts @@ -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; diff --git a/frontend/src/test/unit/services/structure_check.test.ts b/frontend/src/test/unit/services/structure_check.test.ts index 5e8a6c6f..55bf7b8a 100644 --- a/frontend/src/test/unit/services/structure_check.test.ts +++ b/frontend/src/test/unit/services/structure_check.test.ts @@ -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'; @@ -8,7 +7,6 @@ const { structureCheck, getStructureCheckByID, getStructureCheckByProject, - createStructureCheck, deleteStructureCheck, } = useStructureCheck(); diff --git a/frontend/src/test/unit/services/student_service.test.ts b/frontend/src/test/unit/services/student_service.test.ts index 6b8ddc12..d9eb1ca9 100644 --- a/frontend/src/test/unit/services/student_service.test.ts +++ b/frontend/src/test/unit/services/student_service.test.ts @@ -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; diff --git a/frontend/src/test/unit/services/submission_service.test.ts b/frontend/src/test/unit/services/submission_service.test.ts index b6b4f120..88009e1d 100644 --- a/frontend/src/test/unit/services/submission_service.test.ts +++ b/frontend/src/test/unit/services/submission_service.test.ts @@ -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'; diff --git a/frontend/src/test/unit/services/submission_status_service.test.ts b/frontend/src/test/unit/services/submission_status_service.test.ts index d7a90797..5b24e7bc 100644 --- a/frontend/src/test/unit/services/submission_status_service.test.ts +++ b/frontend/src/test/unit/services/submission_status_service.test.ts @@ -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'; diff --git a/frontend/src/test/unit/services/teacher_service.test.ts b/frontend/src/test/unit/services/teacher_service.test.ts index 66ee99eb..7b946b62 100644 --- a/frontend/src/test/unit/services/teacher_service.test.ts +++ b/frontend/src/test/unit/services/teacher_service.test.ts @@ -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; diff --git a/frontend/src/test/unit/types/group.test.ts b/frontend/src/test/unit/types/group.test.ts index 5de9c26a..68870f0d 100644 --- a/frontend/src/test/unit/types/group.test.ts +++ b/frontend/src/test/unit/types/group.test.ts @@ -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'; diff --git a/frontend/src/test/unit/types/project.test.ts b/frontend/src/test/unit/types/project.test.ts index 64d99ecd..7548e444 100644 --- a/frontend/src/test/unit/types/project.test.ts +++ b/frontend/src/test/unit/types/project.test.ts @@ -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';