From 314eaba5424b96a4709dc12d4406117b53e73554 Mon Sep 17 00:00:00 2001 From: EwoutV Date: Thu, 4 Apr 2024 18:46:39 +0200 Subject: [PATCH] chore: translations, test linting --- frontend/src/assets/lang/nl.json | 4 ++++ frontend/src/test/unit/course_service.test.ts | 3 --- frontend/src/test/unit/project_service.test.ts | 5 +---- frontend/src/test/unit/structure_check.test.ts | 4 +--- frontend/src/views/courses/SearchCourseView.vue | 8 ++++---- 5 files changed, 10 insertions(+), 14 deletions(-) diff --git a/frontend/src/assets/lang/nl.json b/frontend/src/assets/lang/nl.json index 60f293f2..31ec1044 100644 --- a/frontend/src/assets/lang/nl.json +++ b/frontend/src/assets/lang/nl.json @@ -48,6 +48,10 @@ "description": "Beschrijving", "year": "Academiejaar", "search": { + "search": "Zoeken", + "faculty": "Faculteit", + "year": "Academiejaar", + "placeholder": "Zoek een vak op naam", "title": "Zoek een vak", "results": "{0} vakken gevonden voor ingestelde filters" } diff --git a/frontend/src/test/unit/course_service.test.ts b/frontend/src/test/unit/course_service.test.ts index a29d109c..941e0531 100644 --- a/frontend/src/test/unit/course_service.test.ts +++ b/frontend/src/test/unit/course_service.test.ts @@ -12,9 +12,6 @@ const { getCourses, getCoursesByStudent, - createCourse, - cloneCourse, - deleteCourse, } = useCourses(); // "describe" bundles tests about 1 specific thing; here we're testing course diff --git a/frontend/src/test/unit/project_service.test.ts b/frontend/src/test/unit/project_service.test.ts index db04dfda..40ff1a49 100644 --- a/frontend/src/test/unit/project_service.test.ts +++ b/frontend/src/test/unit/project_service.test.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ -import { describe, it, expect, beforeEach } from 'vitest'; +import { describe, it, expect } from 'vitest'; import { useProject } from '@/composables/services/project.service.ts'; const { @@ -7,11 +7,8 @@ const { project, getProjectByID, getProjectsByCourse, - getProjectsByCourseAndDeadline, getProjectsByStudent, - createProject, - deleteProject, } = useProject(); describe('project', (): void => { diff --git a/frontend/src/test/unit/structure_check.test.ts b/frontend/src/test/unit/structure_check.test.ts index db83eb4d..974ecc47 100644 --- a/frontend/src/test/unit/structure_check.test.ts +++ b/frontend/src/test/unit/structure_check.test.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ -import { describe, it, expect, beforeEach } from 'vitest'; +import { describe, it, expect } from 'vitest'; import { useStructureCheck } from '@/composables/services/structure_check.service.ts'; const { @@ -8,8 +8,6 @@ const { getStructureCheckByID, getStructureCheckByProject, - createStructureCheck, - deleteStructureCheck, } = useStructureCheck(); describe('structureCheck', (): void => { diff --git a/frontend/src/views/courses/SearchCourseView.vue b/frontend/src/views/courses/SearchCourseView.vue index 8a6690a6..01e3c158 100644 --- a/frontend/src/views/courses/SearchCourseView.vue +++ b/frontend/src/views/courses/SearchCourseView.vue @@ -63,13 +63,13 @@ onMounted(async () => {
- + - + - +
{
- +