import React from 'react'; import { render } from 'enzyme'; import SelectedAccount from './selected-account.component'; describe('SelectedAccount Component', () => { it('should render checksummed address', () => { const wrapper = render( , { context: { t: () => undefined } }, ); // Checksummed version of address is displayed expect(wrapper.find('.selected-account__address').text()).toStrictEqual( '0x1B82...5C9D', ); expect(wrapper.find('.selected-account__name').text()).toStrictEqual( 'testName', ); }); });