A Metamask fork with Infura removed and default networks editable
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.
ciphermask/ui/components/app/modals/cancel-transaction/cancel-transaction-gas-fee/cancel-transaction-gas-fee....

33 lines
781 B

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';
6 years ago
describe('CancelTransactionGasFee Component', () => {
const mockState = {
metamask: {
provider: {
chainId: '0x4',
},
preferences: {
useNativeCurrencyAsPrimaryCurrency: false,
},
},
};
6 years ago
const mockStore = configureMockStore()(mockState);
6 years ago
it('should render', () => {
const props = {
value: '0x3b9aca00',
};
6 years ago
const { container } = renderWithProvider(
<CancelTransactionGasFee {...props} />,
mockStore,
);
expect(container).toMatchSnapshot();
});
});