mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
c3cb464229
* Added custody-labels and account-list components * Modified link * Renamed custody labels and improved code * Added snapshot * Fixed snapshot * Finished connect-custody account-list * Fixing css prettier * Fixed comments of the PR * Fixed code --------- Co-authored-by: António Regadas <apregadas@gmail.com>
18 lines
452 B
JavaScript
18 lines
452 B
JavaScript
import React from 'react';
|
|
import { render } from '@testing-library/react';
|
|
import CustodyLabels from './custody-labels';
|
|
|
|
describe('CustodyLabels Component', () => {
|
|
it('should render correctly', () => {
|
|
const props = {
|
|
labels: [{ key: 'testKey', value: 'value' }],
|
|
index: 'index',
|
|
hideNetwork: 'true',
|
|
};
|
|
|
|
const { container } = render(<CustodyLabels {...props} />);
|
|
|
|
expect(container).toMatchSnapshot();
|
|
});
|
|
});
|