style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									04b35a61f9
								
							
						
					
					
						commit
						b6e07d28df
					
				
					 6 changed files with 8 additions and 12 deletions
				
			
		|  | @ -6,11 +6,7 @@ import processingService from './processing/processing-service.js'; | |||
| import { NotFoundError } from '@mikro-orm/core'; | ||||
| import learningObjectService from './learning-object-service.js'; | ||||
| import { getLogger, Logger } from '../../logging/initalize.js'; | ||||
| import { | ||||
|     FilteredLearningObject, | ||||
|     LearningObjectIdentifier, | ||||
|     LearningPathIdentifier, | ||||
| } from 'dwengo-1-common/src/interfaces/learning-content'; | ||||
| import { FilteredLearningObject, LearningObjectIdentifier, LearningPathIdentifier } from 'dwengo-1-common/src/interfaces/learning-content'; | ||||
| 
 | ||||
| const logger: Logger = getLogger(); | ||||
| 
 | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ import { Language } from '../../../src/entities/content/language'; | |||
| import learningObjectExample from '../../test-assets/learning-objects/pn-werkingnotebooks/pn-werkingnotebooks-example'; | ||||
| import learningPathExample from '../../test-assets/learning-paths/pn-werking-example'; | ||||
| import { LearningPath } from '../../../src/entities/content/learning-path.entity'; | ||||
| import {FilteredLearningObject} from "dwengo-1-common/src/interfaces/learning-content"; | ||||
| import { FilteredLearningObject } from 'dwengo-1-common/src/interfaces/learning-content'; | ||||
| 
 | ||||
| async function initExampleData(): Promise<{ learningObject: LearningObject; learningPath: LearningPath }> { | ||||
|     const learningObjectRepo = getLearningObjectRepository(); | ||||
|  |  | |||
|  | @ -73,18 +73,18 @@ describe('LearningObjectService', () => { | |||
|         }); | ||||
|         it( | ||||
|             'returns the same HTML as the Dwengo API when queried with the identifier of a learning object that does ' + | ||||
|             'not start with the user content prefix', | ||||
|                 'not start with the user content prefix', | ||||
|             async () => { | ||||
|                 const result = await learningObjectService.getLearningObjectHTML(DWENGO_TEST_LEARNING_OBJECT_ID); | ||||
|                 expect(result).not.toBeNull(); | ||||
| 
 | ||||
|                 const responseFromDwengoApi = await fetch( | ||||
|                     getEnvVar(envVars.LearningContentRepoApiBaseUrl) + | ||||
|                     `/learningObject/getRaw?hruid=${DWENGO_TEST_LEARNING_OBJECT_ID.hruid}&language=${DWENGO_TEST_LEARNING_OBJECT_ID.language}&version=${DWENGO_TEST_LEARNING_OBJECT_ID.version}`, | ||||
|                         `/learningObject/getRaw?hruid=${DWENGO_TEST_LEARNING_OBJECT_ID.hruid}&language=${DWENGO_TEST_LEARNING_OBJECT_ID.language}&version=${DWENGO_TEST_LEARNING_OBJECT_ID.version}` | ||||
|                 ); | ||||
|                 const responseHtml = await responseFromDwengoApi.text(); | ||||
|                 expect(result).toEqual(responseHtml); | ||||
|             }, | ||||
|             } | ||||
|         ); | ||||
|         it('returns null when queried with a non-existing identifier', async () => { | ||||
|             const result = await learningObjectService.getLearningObjectHTML({ | ||||
|  |  | |||
|  | @ -20,7 +20,7 @@ import { | |||
| } from '../../test-assets/learning-paths/test-conditions-example.js'; | ||||
| import { Student } from '../../../src/entities/users/student.entity.js'; | ||||
| 
 | ||||
| import {LearningObjectNode, LearningPathResponse} from "dwengo-1-common/src/interfaces/learning-content"; | ||||
| import { LearningObjectNode, LearningPathResponse } from 'dwengo-1-common/src/interfaces/learning-content'; | ||||
| 
 | ||||
| async function initExampleData(): Promise<{ learningObject: LearningObject; learningPath: LearningPath }> { | ||||
|     const learningObjectRepo = getLearningObjectRepository(); | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ import { AssertionError } from 'node:assert'; | |||
| import { LearningObject } from '../../src/entities/content/learning-object.entity'; | ||||
| import { LearningPath as LearningPathEntity } from '../../src/entities/content/learning-path.entity'; | ||||
| import { expect } from 'vitest'; | ||||
| import {FilteredLearningObject, LearningPath} from "dwengo-1-common/src/interfaces/learning-content"; | ||||
| import { FilteredLearningObject, LearningPath } from 'dwengo-1-common/src/interfaces/learning-content'; | ||||
| 
 | ||||
| // Ignored properties because they belang for example to the class, not to the entity itself.
 | ||||
| const IGNORE_PROPERTIES = ['parent']; | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action