mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
23 lines
724 B
JavaScript
23 lines
724 B
JavaScript
|
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();
|
||
|
});
|
||
|
});
|
||
|
});
|