1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 15:50:28 +01:00
metamask-extension/ui/components/app/confirm-page-container/confirm-detail-row/confirm-detail-row.component.test.js

28 lines
664 B
JavaScript
Raw Normal View History

import React from 'react';
import configureMockStore from 'redux-mock-store';
2018-07-25 20:57:41 +02:00
import { renderWithProvider } from '../../../../../test/lib/render-helpers';
import ConfirmDetailRow from '.';
2018-07-25 20:57:41 +02:00
describe('Confirm Detail Row Component', () => {
const mockState = {
metamask: {
providerConfig: {
type: 'rpc',
chainId: '0x5',
},
preferences: {
useNativeCurrencyAsPrimaryCurrency: true,
},
},
};
const store = configureMockStore()(mockState);
it('should match snapshot', () => {
const { container } = renderWithProvider(<ConfirmDetailRow />, store);
expect(container).toMatchSnapshot();
});
});