Skip to content

Commit

Permalink
Update tests to mocl searchArea button
Browse files Browse the repository at this point in the history
  • Loading branch information
HonTastic2 committed Jul 31, 2024
1 parent c2f5a6f commit 7f9b2b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jest.mock('./components/LocationMarker', () => {
return jest.fn(() => <div>Mocked LocationMarker</div>);
});

jest.mock('./components/SearchArea', () => {
return jest.fn(() => <div>Mocked SearchArea</div>);
});

test('Loading... is shown on site', () => {
render(<App />);
const loadingElement = screen.getByText(/Loading.../);
Expand Down

0 comments on commit 7f9b2b4

Please sign in to comment.