feat(client): add search tests
This commit is contained in:
parent
5814cfec6d
commit
4155be9f00
|
|
@ -74,7 +74,7 @@ const renderWithRouter = (component) => {
|
||||||
|
|
||||||
describe('GlobalSearchBar', () => {
|
describe('GlobalSearchBar', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
jest.clearAllMocks();
|
vi.clearAllMocks();
|
||||||
localStorageMock.getItem.mockReturnValue(null);
|
localStorageMock.getItem.mockReturnValue(null);
|
||||||
documentService.enhancedSearch.mockResolvedValue(mockSearchResponse);
|
documentService.enhancedSearch.mockResolvedValue(mockSearchResponse);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue