test(backend): Testen voor LearningObjectService toegevoegd
This commit is contained in:
parent
8152306a92
commit
cb6056e9d7
3 changed files with 82 additions and 2 deletions
|
@ -65,7 +65,7 @@ export interface LearningObjectMetadata {
|
|||
uuid: string;
|
||||
hruid: string;
|
||||
version: number;
|
||||
language: string;
|
||||
language: Language;
|
||||
title: string;
|
||||
description: string;
|
||||
difficulty: number;
|
||||
|
|
|
@ -107,7 +107,7 @@ const dwengoApiLearningObjectProvider: LearningObjectProvider = {
|
|||
}
|
||||
);
|
||||
|
||||
if (!metadata) {
|
||||
if (!metadata || typeof metadata !== "object") {
|
||||
console.error(`⚠️ WARNING: Learning object "${id.hruid}" not found.`);
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue