diff --git a/backend/eslint.config.ts b/backend/eslint.config.ts index 52cfed53..6b696021 100644 --- a/backend/eslint.config.ts +++ b/backend/eslint.config.ts @@ -10,12 +10,12 @@ export default [ }, { - files: [ 'tests/**/*.ts'], + files: ['tests/**/*.ts'], languageOptions: { - globals: globals.node + globals: globals.node, }, rules: { - 'no-console': 'off' - } - } + 'no-console': 'off', + }, + }, ]; diff --git a/backend/tests/services/learning-path/database-learning-path-provider.test.ts b/backend/tests/services/learning-path/database-learning-path-provider.test.ts index 4964f380..7c7ecdae 100644 --- a/backend/tests/services/learning-path/database-learning-path-provider.test.ts +++ b/backend/tests/services/learning-path/database-learning-path-provider.test.ts @@ -1,7 +1,7 @@ -import {beforeAll, describe, expect, it} from 'vitest'; -import {LearningObject} from '../../../src/entities/content/learning-object.entity.js'; -import {setupTestApp} from '../../setup-tests.js'; -import {LearningPath} from '../../../src/entities/content/learning-path.entity.js'; +import { beforeAll, describe, expect, it } from 'vitest'; +import { LearningObject } from '../../../src/entities/content/learning-object.entity.js'; +import { setupTestApp } from '../../setup-tests.js'; +import { LearningPath } from '../../../src/entities/content/learning-path.entity.js'; import { getLearningObjectRepository, getLearningPathRepository, @@ -11,16 +11,16 @@ import { import learningObjectExample from '../../test-assets/learning-objects/pn-werkingnotebooks/pn-werkingnotebooks-example.js'; import learningPathExample from '../../test-assets/learning-paths/pn-werking-example.js'; import databaseLearningPathProvider from '../../../src/services/learning-paths/database-learning-path-provider.js'; -import {expectToBeCorrectLearningPath} from '../../test-utils/expectations.js'; -import {LearningObjectRepository} from '../../../src/data/content/learning-object-repository.js'; +import { expectToBeCorrectLearningPath } from '../../test-utils/expectations.js'; +import { LearningObjectRepository } from '../../../src/data/content/learning-object-repository.js'; import learningObjectService from '../../../src/services/learning-objects/learning-object-service.js'; -import {Language} from '../../../src/entities/content/language.js'; +import { Language } from '../../../src/entities/content/language.js'; import { ConditionTestLearningPathAndLearningObjects, createConditionTestLearningPathAndLearningObjects, } from '../../test-assets/learning-paths/test-conditions-example.js'; -import {Student} from '../../../src/entities/users/student.entity.js'; -import {LearningObjectNode, LearningPathResponse} from '../../../src/interfaces/learning-content.js'; +import { Student } from '../../../src/entities/users/student.entity.js'; +import { LearningObjectNode, LearningPathResponse } from '../../../src/interfaces/learning-content.js'; async function initExampleData(): Promise<{ learningObject: LearningObject; learningPath: LearningPath }> { const learningObjectRepo = getLearningObjectRepository();