test(backend): Test-meerkeuzevraag toegevoegd.
This commit is contained in:
		
							parent
							
								
									385f4ae569
								
							
						
					
					
						commit
						050c83ca33
					
				
					 3 changed files with 27 additions and 0 deletions
				
			
		|  | @ -0,0 +1,5 @@ | |||
| ::MC basic:: | ||||
| Are you following along well with the class?  { | ||||
| 	~No, it's very difficult to follow along. | ||||
|     =Yes, no problem! | ||||
| } | ||||
|  | @ -0,0 +1,22 @@ | |||
| import {LearningObjectExample} from "../learning-object-example"; | ||||
| import {LearningObject} from "../../../../src/entities/content/learning-object.entity"; | ||||
| import {loadTestAsset} from "../../../test-utils/load-test-asset"; | ||||
| import {EnvVars, getEnvVar} from "../../../../src/util/envvars"; | ||||
| import {Language} from "../../../../src/entities/content/language"; | ||||
| 
 | ||||
| const example: LearningObjectExample = { | ||||
|     createLearningObject: () => { | ||||
|         const learningObject = new LearningObject(); | ||||
|         learningObject.hruid = `${getEnvVar(EnvVars.UserContentPrefix)}test_multiple_choice`; | ||||
|         learningObject.language = Language.English; | ||||
|         learningObject.version = 1; | ||||
|         learningObject.title = "Multiple choice question for testing"; | ||||
|         learningObject.description = "This multiple choice question was only created for testing purposes."; | ||||
|         learningObject.content = loadTestAsset("learning-objects/test-multiple-choice/content.txt"); | ||||
|         return learningObject; | ||||
|     }, | ||||
|     createAttachment: {}, | ||||
|     getHTMLRendering: () => loadTestAsset("learning-objects/test-multiple-choice/rendering.html").toString() | ||||
| }; | ||||
| 
 | ||||
| export default example; | ||||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger