1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 19:10:22 +01:00
metamask-extension/ui/pages/send/send-content/send-gas-row/send-gas-row.test.js

23 lines
724 B
JavaScript
Raw Normal View History

import React from 'react';
import configureMockStore from 'redux-mock-store';
import { renderWithProvider } from '../../../../../test/lib/render-helpers';
import mockSendState from '../../../../../test/data/mock-send-state.json';
import SendGasRow from '.';
jest.mock('../../../../ducks/send', () => ({
...jest.requireActual('../../../../ducks/send'),
getGasInputMode: jest.fn().mockReturnValue('INLINE'),
}));
describe('SendGasRow Component', () => {
describe('render', () => {
const mockStore = configureMockStore()(mockSendState);
it('should match snapshot', () => {
const { container } = renderWithProvider(<SendGasRow />, mockStore);
expect(container).toMatchSnapshot();
});
});
});