fix(backend): Restore sort

This commit is contained in:
Tibo De Peuter 2025-04-03 07:43:59 +02:00
parent 9f60c43522
commit 6d7d29ce3c
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -48,7 +48,7 @@ describe('LearningPathService', () => {
expect(result.data?.length).toBe(1); expect(result.data?.length).toBe(1);
// Should include all the nodes, even those pointing to foreign learning objects. // 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() example.learningPath.nodes.map((it) => it.learningObjectHruid).sort()
); );
}); });