Skip to content

Commit

Permalink
Downgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
robsimmons committed Nov 28, 2024
1 parent 2537d79 commit 6dfb998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/choiceengine.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function simplify(
);
agenda = agenda.next;
}
simpleTree = agendaItems.toReversed();
simpleTree = [...agendaItems].reverse();
} else if (tree.state.deferred.size === 0) {
simpleTree = 'leaf containing model';
} else {
Expand All @@ -57,7 +57,7 @@ function simplify(
simpleSolution = model.size;
}

return { path: simplePath.toReversed(), tree: simpleTree, model: simpleSolution };
return { path: simplePath.reverse(), tree: simpleTree, model: simpleSolution };
}

let path: ChoiceZipper;
Expand Down

0 comments on commit 6dfb998

Please sign in to comment.