Fixed failing tests

This commit is contained in:
ThaumRystra
2023-12-23 12:31:14 +02:00
parent 4c778fa282
commit a06e9a0960
10 changed files with 49 additions and 38 deletions

View File

@@ -369,8 +369,6 @@ export async function moveDocWithinRoot(doc: TreeDoc, collection: Mongo.Collecti
throw new Meteor.Error('invalid-move', 'Destination must be outside the doc\'s current location');
}
console.log(`Moving ${doc._id} ${move} spaces, while everything between ${includedRange.left} and ${includedRange.right} is shifted by ${shiftDistance}`);
// If the move isn't meaningfully changing the doc's location, skip
if (Math.abs(move) < 1) {
return;