From 6d7d29ce3c9c442d9fee728a4db5ef25269f9f82 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Thu, 3 Apr 2025 07:43:59 +0200 Subject: [PATCH] fix(backend): Restore sort --- .../tests/services/learning-path/learning-path-service.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/tests/services/learning-path/learning-path-service.test.ts b/backend/tests/services/learning-path/learning-path-service.test.ts index 4feb3627..934c677b 100644 --- a/backend/tests/services/learning-path/learning-path-service.test.ts +++ b/backend/tests/services/learning-path/learning-path-service.test.ts @@ -48,7 +48,7 @@ describe('LearningPathService', () => { expect(result.data?.length).toBe(1); // Should include all the nodes, even those pointing to foreign learning objects. - expect([...result.data![0].nodes.map((it) => it.learningobject_hruid)].sort((a, b) => a - b)).toEqual( + expect([...result.data![0].nodes.map((it) => it.learningobject_hruid)].sort()).toEqual( example.learningPath.nodes.map((it) => it.learningObjectHruid).sort() ); });