mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
20 lines
591 B
JavaScript
20 lines
591 B
JavaScript
import React from 'react';
|
|
import { renderWithProvider } from '../../../../test/jest';
|
|
import configureStore from '../../../store/store';
|
|
import EditGasDisplay from '.';
|
|
|
|
jest.mock('../../../selectors');
|
|
jest.mock('../../../helpers/utils/confirm-tx.util');
|
|
jest.mock('../../../helpers/utils/transactions.util');
|
|
|
|
function render({ componentProps = {} } = {}) {
|
|
const store = configureStore({});
|
|
return renderWithProvider(<EditGasDisplay {...componentProps} />, store);
|
|
}
|
|
|
|
describe('EditGasDisplay', () => {
|
|
it('if render correctly', () => {
|
|
expect(render).not.toThrow();
|
|
});
|
|
});
|