Skip to content

Commit a5c2167

Browse files
authored
chore: wallet reset balance unit test (#12906)
1 parent 19e8d55 commit a5c2167

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from 'react';
2+
import { render, screen } from '@testing-library/react';
3+
import WalletResetBalance from '../WalletResetBalance';
4+
5+
jest.mock('../../../modules', () => ({
6+
ResetBalanceModule: jest.fn(() => <div>MockedResetBalanceModule</div>),
7+
}));
8+
9+
describe('WalletResetBalance', () => {
10+
it('should render ResetBalanceModule', () => {
11+
render(<WalletResetBalance />);
12+
13+
expect(screen.getByText(/MockedResetBalanceModule/)).toBeInTheDocument();
14+
});
15+
});

0 commit comments

Comments
 (0)