Skip to content

Commit

Permalink
NAS-128625: Recent searches in global search shows unusual results
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKarpov98 committed Apr 30, 2024
1 parent 711b335 commit 0697ca6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jest.mock('app/../assets/ui-searchable-elements.json', () => ([
triggerAnchor: null,
section: GlobalSearchSection.Ui,
},
]), { virtual: true });
]));

describe('GlobalSearchSectionsProvider', () => {
let spectator: SpectatorService<GlobalSearchSectionsProvider>;
Expand Down Expand Up @@ -88,6 +88,8 @@ describe('GlobalSearchSectionsProvider', () => {
},
];

mockLocalStorage.getItem.mockReturnValue(JSON.stringify(recentSearches));

const results = spectator.service.getRecentSearchesSectionResults();

expect(mockLocalStorage.getItem).toHaveBeenCalledWith('recentSearches');
Expand Down

0 comments on commit 0697ca6

Please sign in to comment.