fix(frontend): fouten in nieuwe testen opgelost
This commit is contained in:
		
							parent
							
								
									211ddaed75
								
							
						
					
					
						commit
						37d9130066
					
				
					 2 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -12,10 +12,10 @@ describe("Test controller learning object", () => {
 | 
			
		|||
    it("can get the metadata of a learning object", async () => {
 | 
			
		||||
        const result = await controller.getMetadata("u_id01", Language.English, 1);
 | 
			
		||||
        expect(result).not.toBeNull();
 | 
			
		||||
        for (const property of ["hruid", "version", "language", "title"]) {
 | 
			
		||||
        for (const property of ["key", "version", "language", "title"]) {
 | 
			
		||||
            expect(result).toHaveProperty(property);
 | 
			
		||||
        }
 | 
			
		||||
        expect(result.hruid).toEqual("u_id01");
 | 
			
		||||
        expect(result.key).toEqual("u_id01");
 | 
			
		||||
        expect(result.version).toEqual(1);
 | 
			
		||||
        expect(result.language).toEqual(Language.English);
 | 
			
		||||
    });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,7 +21,6 @@ describe("Test controller learning paths", () => {
 | 
			
		|||
 | 
			
		||||
    it("Can get all learning paths administrated by a certain user.", async () => {
 | 
			
		||||
        const data = await controller.getAllByAdminRaw("user");
 | 
			
		||||
        expect(typeof data).toEqual("array");
 | 
			
		||||
        expect(data.length).toBe(0); // This user does not administrate any learning paths in the test data.
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue