fixup! fix(backend): Restore sort
This commit is contained in:
parent
6d7d29ce3c
commit
ced27c148b
1 changed files with 2 additions and 2 deletions
|
@ -48,8 +48,8 @@ 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()).toEqual(
|
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()
|
example.learningPath.nodes.map((it) => it.learningObjectHruid).sort((a, b) => a.localeCompare(b))
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue