Skip to content

Commit

Permalink
test: ✅ Fixed URL parsing to fix failing test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JeffJacobson committed Dec 16, 2024
1 parent 86c93c4 commit 2616db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elc/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2616db7

Please sign in to comment.