Skip to content

Commit 8175b35

Browse files
committed
Finish marketplace test and search bar test
1 parent b19dbf2 commit 8175b35

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

__tests__/marketplace.test.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ import store from '../app/src/redux/store';
1212

1313
// Mocking the axios module to avoid actual network calls
1414
jest.mock('axios');
15+
jest.mock(
16+
'resources/marketplace_images/marketplace_image.png',
17+
() => 'mock-image-url'
18+
);
1519

1620
describe('MarketplaceCard Render Test', () => {
1721
const mockProject = {
@@ -72,9 +76,6 @@ describe('MarketplaceContainer', () => {
7276
expect(screen.getByText('Project 2')).toBeInTheDocument();
7377
expect(screen.getByText('user2')).toBeInTheDocument();
7478
});
75-
76-
// Additional tests can include: testing search bar functionality,
77-
// loading states, and no results found message.
7879
});
7980

8081
const mockProjects = [

0 commit comments

Comments
 (0)