1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-05 07:24:56 +01:00
metamask-extension/ui/components/app/modals/cancel-transaction/cancel-transaction-gas-fee/cancel-transaction-gas-fee.component.test.js

33 lines
781 B
JavaScript
Raw Normal View History

import React from 'react';
import configureMockStore from 'redux-mock-store';
import { renderWithProvider } from '../../../../../../test/lib/render-helpers';
import CancelTransactionGasFee from './cancel-transaction-gas-fee.component';
2018-09-19 23:30:52 +02:00
describe('CancelTransactionGasFee Component', () => {
const mockState = {
metamask: {
provider: {
chainId: '0x4',
},
preferences: {
useNativeCurrencyAsPrimaryCurrency: false,
},
},
};
2018-09-19 23:30:52 +02:00
const mockStore = configureMockStore()(mockState);
2018-09-19 23:30:52 +02:00
it('should render', () => {
const props = {
value: '0x3b9aca00',
};
2018-09-19 23:30:52 +02:00
const { container } = renderWithProvider(
<CancelTransactionGasFee {...props} />,
mockStore,
);
expect(container).toMatchSnapshot();
});
});