A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ciphermask/ui/components/app/selected-account/selected-account-component....

25 lines
727 B

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(
<SelectedAccount
selectedIdentity={{
name: 'testName',
address: '0x1b82543566f41a7db9a9a75fc933c340ffb55c9d',
}}
/>,
{ 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',
);
});
});