import React from 'react'; import TransactionDetails from './'; import configureMockStore from 'redux-mock-store'; import { shallow } from 'enzyme'; import { RPC } from '../../../../constants/network'; import { Provider } from 'react-redux'; const mockStore = configureMockStore(); const initialState = { engine: { backgroundState: { CurrencyRateController: { conversionRate: 2, currentCurrency: 'USD', }, PreferencesController: { frequentRpcList: [], }, NetworkController: { provider: { rpcTarget: '', type: RPC, }, }, }, }, }; const store = mockStore(initialState); describe('TransactionDetails', () => { it('should render correctly', () => { const wrapper = shallow( , ); expect(wrapper).toMatchSnapshot(); }); });