Skip to content

Commit

Permalink
Try test
Browse files Browse the repository at this point in the history
  • Loading branch information
gouravmpk committed Jan 17, 2024
1 parent c363f41 commit 7a685ef
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,7 @@ describe('MobileView component', () => {
expect(iCanHelp).toBeInTheDocument();
});
it('displays "Mark as Paid" when bounty is unpaid', async () => {
const modifiedProps = {
...defaultProps,
paid: false,
};

jest.mock('store', () => ({
jest.mock('store', () => ({
useStores: () => ({
main: {
},
Expand All @@ -156,11 +151,13 @@ describe('MobileView component', () => {
}
})
}));
render(<MobileView {...modifiedProps} />);
render(<MobileView {...defaultProps} />);

await waitFor(() => {
const markPaidButton = screen.getByText('Mark as Paid');
const markUnPaidButton = screen.getByText('Mark as Unpaid');
expect(markPaidButton).toBeInTheDocument();
expect(markUnPaidButton).toBeInTheDocument();
}); });

it('should render the NameTag with correct props', () => {
Expand Down

0 comments on commit 7a685ef

Please sign in to comment.