mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 21:57:06 +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();
|
||
|
});
|
||
|
});
|
||
|
});
|