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.
27 lines
658 B
27 lines
658 B
import React from 'react';
|
|
import configureMockStore from 'redux-mock-store';
|
|
|
|
import { renderWithProvider } from '../../../../../test/lib/render-helpers';
|
|
import ConfirmDetailRow from '.';
|
|
|
|
describe('Confirm Detail Row Component', () => {
|
|
const mockState = {
|
|
metamask: {
|
|
provider: {
|
|
type: 'rpc',
|
|
chainId: '0x4',
|
|
},
|
|
preferences: {
|
|
useNativeCurrencyAsPrimaryCurrency: true,
|
|
},
|
|
},
|
|
};
|
|
|
|
const store = configureMockStore()(mockState);
|
|
|
|
it('should match snapshot', () => {
|
|
const { container } = renderWithProvider(<ConfirmDetailRow />, store);
|
|
|
|
expect(container).toMatchSnapshot();
|
|
});
|
|
});
|
|
|