From 38d2b5bdcdfc132b1adce9ff35ae87fa457c5b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Wed, 14 Sep 2022 14:59:58 +0200 Subject: [PATCH] Fix tests --- .../components/utils/useSearchParamsSimulationSharing.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/source/components/utils/useSearchParamsSimulationSharing.ts b/site/source/components/utils/useSearchParamsSimulationSharing.ts index ed051cd9a..4bced762d 100644 --- a/site/source/components/utils/useSearchParamsSimulationSharing.ts +++ b/site/source/components/utils/useSearchParamsSimulationSharing.ts @@ -113,7 +113,7 @@ export const cleanSearchParams = ( setSearchParams(searchParams.toString(), { replace: true }) } -const getRulesParamNames = ( +export const getRulesParamNames = ( parsedRules: ParsedRules ): [DottedName, ParamName][] => ( @@ -126,7 +126,7 @@ const getRulesParamNames = ( ruleNode.rawNode['identifiant court'] || dottedName, ]) -function getSearchParamsFromSituation( +export function getSearchParamsFromSituation( engine: Engine, situation: Situation, dottedNameParamName: [DottedName, ParamName][]