From 2616db7cbca7a448537525a9cddc01a792bd0aef Mon Sep 17 00:00:00 2001 From: Jeff Jacobson Date: Mon, 16 Dec 2024 08:14:19 -0800 Subject: [PATCH] test: :white_check_mark: Fixed URL parsing to fix failing test Modified URL parsing so that endSrmp and endBack are returned as undefined rather than null when no end milepost is specified to match previous behavior. The previous version actually worked in the app but was causing the unit test to fail. --- src/elc/url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elc/url.ts b/src/elc/url.ts index f35b2cb9..75d68664 100644 --- a/src/elc/url.ts +++ b/src/elc/url.ts @@ -288,7 +288,7 @@ export function getElcParamsFromUrl( const { srmp: endSrmp, back: endBack } = emp ? parseSrmp(emp) - : { srmp: null, back: null }; + : { srmp: undefined, back: undefined }; const output = { Route: route, Srmp: srmp,