How to mock `sorting` in jointjs `new dia.Paper()` I tried to mock jointjs, which I’m using like this: