From a737904cac906469ef20b0cfc8d160599aa94c21 Mon Sep 17 00:00:00 2001 From: blam Date: Thu, 15 Aug 2024 11:36:19 +0200 Subject: [PATCH] chore: fix tests Signed-off-by: blam --- .../src/routing/extractRouteInfoFromAppNode.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/frontend-app-api/src/routing/extractRouteInfoFromAppNode.test.ts b/packages/frontend-app-api/src/routing/extractRouteInfoFromAppNode.test.ts index 8a54f3e73e..1fc899a906 100644 --- a/packages/frontend-app-api/src/routing/extractRouteInfoFromAppNode.test.ts +++ b/packages/frontend-app-api/src/routing/extractRouteInfoFromAppNode.test.ts @@ -59,10 +59,11 @@ function createTestExtension(options: { children: createExtensionInput([coreExtensionData.reactElement]), }, *factory() { - if (options.path) { + if (options.path !== undefined) { yield coreExtensionData.routePath(options.path); } - if (options.routeRef) { + + if (options.routeRef !== undefined) { yield coreExtensionData.routeRef(options.routeRef); }