2021-02-04 19:15:23 +01:00
|
|
|
import React from 'react';
|
2022-09-21 18:38:35 +02:00
|
|
|
import configureMockStore from 'redux-mock-store';
|
2018-07-25 20:57:41 +02:00
|
|
|
|
2022-09-21 18:38:35 +02:00
|
|
|
import { renderWithProvider } from '../../../../../test/lib/render-helpers';
|
|
|
|
import ConfirmDetailRow from '.';
|
2018-07-25 20:57:41 +02:00
|
|
|
|
2021-04-15 20:01:46 +02:00
|
|
|
describe('Confirm Detail Row Component', () => {
|
2022-09-21 18:38:35 +02:00
|
|
|
const mockState = {
|
|
|
|
metamask: {
|
2023-05-02 17:53:20 +02:00
|
|
|
providerConfig: {
|
2022-09-21 18:38:35 +02:00
|
|
|
type: 'rpc',
|
2022-09-29 05:26:01 +02:00
|
|
|
chainId: '0x5',
|
2022-09-21 18:38:35 +02:00
|
|
|
},
|
|
|
|
preferences: {
|
|
|
|
useNativeCurrencyAsPrimaryCurrency: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
const store = configureMockStore()(mockState);
|
|
|
|
|
|
|
|
it('should match snapshot', () => {
|
|
|
|
const { container } = renderWithProvider(<ConfirmDetailRow />, store);
|
|
|
|
|
|
|
|
expect(container).toMatchSnapshot();
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
|
|
|
});
|