Skip to content

Commit

Permalink
Fix unit tests to be agnostic about query params
Browse files Browse the repository at this point in the history
  • Loading branch information
p-jackson committed Jan 9, 2025
1 parent fdd9bd6 commit fe9c09a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ describe( 'Launchpad', () => {
`/setup/link-in-bio/launchpad?siteSlug=${ siteSlug }`
);
expect( replaceMock ).toHaveBeenCalledTimes( 1 );
expect( replaceMock ).toHaveBeenCalledWith( `/home/${ siteSlug }` );
expect( replaceMock ).toHaveBeenCalledWith(
expect.stringMatching( `/home/${ siteSlug }` )
);
} );
} );

Expand All @@ -205,7 +207,9 @@ describe( 'Launchpad', () => {
{},
`/setup/link-in-bio/launchpad?siteSlug=${ siteSlug }`
);
expect( replaceMock ).toHaveBeenCalledWith( `/home/${ siteSlug }` );
expect( replaceMock ).toHaveBeenCalledWith(
expect.stringMatching( `/home/${ siteSlug }` )
);
} );
} );

Expand Down

0 comments on commit fe9c09a

Please sign in to comment.