style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-03-12 15:57:49 +00:00
parent 80d0fecbba
commit e3e6a03003
2 changed files with 14 additions and 14 deletions

View file

@ -10,12 +10,12 @@ export default [
}, },
{ {
files: [ 'tests/**/*.ts'], files: ['tests/**/*.ts'],
languageOptions: { languageOptions: {
globals: globals.node globals: globals.node,
}, },
rules: { rules: {
'no-console': 'off' 'no-console': 'off',
} },
} },
]; ];

View file

@ -1,7 +1,7 @@
import {beforeAll, describe, expect, it} from 'vitest'; import { beforeAll, describe, expect, it } from 'vitest';
import {LearningObject} from '../../../src/entities/content/learning-object.entity.js'; import { LearningObject } from '../../../src/entities/content/learning-object.entity.js';
import {setupTestApp} from '../../setup-tests.js'; import { setupTestApp } from '../../setup-tests.js';
import {LearningPath} from '../../../src/entities/content/learning-path.entity.js'; import { LearningPath } from '../../../src/entities/content/learning-path.entity.js';
import { import {
getLearningObjectRepository, getLearningObjectRepository,
getLearningPathRepository, getLearningPathRepository,
@ -11,16 +11,16 @@ import {
import learningObjectExample from '../../test-assets/learning-objects/pn-werkingnotebooks/pn-werkingnotebooks-example.js'; 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 learningPathExample from '../../test-assets/learning-paths/pn-werking-example.js';
import databaseLearningPathProvider from '../../../src/services/learning-paths/database-learning-path-provider.js'; import databaseLearningPathProvider from '../../../src/services/learning-paths/database-learning-path-provider.js';
import {expectToBeCorrectLearningPath} from '../../test-utils/expectations.js'; import { expectToBeCorrectLearningPath } from '../../test-utils/expectations.js';
import {LearningObjectRepository} from '../../../src/data/content/learning-object-repository.js'; import { LearningObjectRepository } from '../../../src/data/content/learning-object-repository.js';
import learningObjectService from '../../../src/services/learning-objects/learning-object-service.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 { import {
ConditionTestLearningPathAndLearningObjects, ConditionTestLearningPathAndLearningObjects,
createConditionTestLearningPathAndLearningObjects, createConditionTestLearningPathAndLearningObjects,
} from '../../test-assets/learning-paths/test-conditions-example.js'; } from '../../test-assets/learning-paths/test-conditions-example.js';
import {Student} from '../../../src/entities/users/student.entity.js'; import { Student } from '../../../src/entities/users/student.entity.js';
import {LearningObjectNode, LearningPathResponse} from '../../../src/interfaces/learning-content.js'; import { LearningObjectNode, LearningPathResponse } from '../../../src/interfaces/learning-content.js';
async function initExampleData(): Promise<{ learningObject: LearningObject; learningPath: LearningPath }> { async function initExampleData(): Promise<{ learningObject: LearningObject; learningPath: LearningPath }> {
const learningObjectRepo = getLearningObjectRepository(); const learningObjectRepo = getLearningObjectRepository();