From 6dfb998284ec16b6f7b7c70ae5058cf20917ac12 Mon Sep 17 00:00:00 2001 From: Rob Simmons Date: Thu, 28 Nov 2024 12:22:44 -0500 Subject: [PATCH] Downgrade dependencies --- src/engine/choiceengine.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/choiceengine.test.ts b/src/engine/choiceengine.test.ts index 37b37e7..3efe5f1 100644 --- a/src/engine/choiceengine.test.ts +++ b/src/engine/choiceengine.test.ts @@ -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 { @@ -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;