mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 03:17:56 +00:00
f2e70a8150
BREAKING: Removed multi-language support (i18n) - will be re-added later Changes: - Removed i18n system (6 language files, LanguageContext) - Expanded WalletScreen, SettingsScreen, SwapScreen with more features - Added KurdistanSun component, HEZ/PEZ token icons - Added EditProfileScreen, WalletSetupScreen - Added button e2e tests (Profile, Settings, Wallet) - Updated plan: honest assessment - 42 nav buttons with mock data - Fixed terminology: Polkadot→Pezkuwi, Substrate→Bizinikiwi Reality check: UI complete with mock data, converting to production one-by-one
28 lines
770 B
TypeScript
28 lines
770 B
TypeScript
import React from 'react';
|
|
import { render } from '@testing-library/react-native';
|
|
import { PezkuwiProvider } from '../contexts/PezkuwiContext';
|
|
import WalletScreen from '../WalletScreen';
|
|
|
|
jest.mock('@react-navigation/native', () => ({
|
|
...jest.requireActual('@react-navigation/native'),
|
|
useNavigation: () => ({ navigate: jest.fn() }),
|
|
}));
|
|
|
|
const WalletScreenWrapper = () => (
|
|
<PezkuwiProvider>
|
|
<WalletScreen />
|
|
</PezkuwiProvider>
|
|
);
|
|
|
|
describe('WalletScreen', () => {
|
|
it('should render without crashing', () => {
|
|
const { toJSON } = render(<WalletScreenWrapper />);
|
|
expect(toJSON()).toBeTruthy();
|
|
});
|
|
|
|
it('should match snapshot', () => {
|
|
const { toJSON } = render(<WalletScreenWrapper />);
|
|
expect(toJSON()).toMatchSnapshot();
|
|
});
|
|
});
|