fixup! fix(backend): Restore sort

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

View file

@ -48,8 +48,8 @@ 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()).toEqual(
example.learningPath.nodes.map((it) => it.learningObjectHruid).sort()
expect([...result.data![0].nodes.map((it) => it.learningobject_hruid)].sort((a, b) => a.localeCompare(b))).toEqual(
example.learningPath.nodes.map((it) => it.learningObjectHruid).sort((a, b) => a.localeCompare(b))
);
});
});