Skip to content

Commit

Permalink
fix: Recently viewed widget API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anandgorantala authored and joerideg committed Sep 5, 2024
1 parent cfb63b6 commit 1007a64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/recs-pathways/widget.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ describe('RecentlyViewedWidget API', () => {
getRecentlyViewedWidget,
[widgetId, config, searchOptions],
[
http.get(`${config.widgetEndpoint}recentlyviewed/${widgetId}`, ({ request }) => {
http.get(`${config.widgetEndpoint}personalized/${widgetId}`, ({ request }) => {
searchParams = new URL(request.url).searchParams;
return HttpResponse.json(createWidgetResponseMock());
}),
Expand All @@ -268,7 +268,7 @@ describe('RecentlyViewedWidget API', () => {
getRecentlyViewedWidget,
[widgetId, configWithoutEndpoint, searchOptions],
[
http.get(`${WIDGET_ENDPOINT_PROD}recentlyviewed/${widgetId}`, () => {
http.get(`${WIDGET_ENDPOINT_PROD}personalized/${widgetId}`, () => {
return HttpResponse.json(createWidgetResponseMock());
}),
],
Expand Down

0 comments on commit 1007a64

Please sign in to comment.