test(backend): Testen voor DatabaseLearningObjectProvider.getLearningObjectHTML toegevoegd.
Hierbij optredende problemen ook opgelost.
This commit is contained in:
		
							parent
							
								
									a3b995393b
								
							
						
					
					
						commit
						91e3b5ad91
					
				
					 15 changed files with 103 additions and 60 deletions
				
			
		|  | @ -2,7 +2,7 @@ import {LearningObjectIdentifier} from "../interfaces/learning-content"; | |||
| 
 | ||||
| export function isValidHttpUrl(url: string): boolean { | ||||
|     try { | ||||
|         const parsedUrl = new URL(url); | ||||
|         const parsedUrl = new URL(url, "http://test.be"); | ||||
|         return parsedUrl.protocol === "http:" || parsedUrl.protocol === "https:"; | ||||
|     } catch (e) { | ||||
|         return false; | ||||
|  |  | |||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger