import React from 'react'; import { shallow } from 'enzyme'; import TransactionHeader from './'; import configureMockStore from 'redux-mock-store'; import { ROPSTEN } from '../../../constants/network'; import { Provider } from 'react-redux'; const mockStore = configureMockStore(); const initialState = { engine: { backgroundState: { NetworkController: { provider: { type: ROPSTEN, nickname: 'Ropsten', }, }, }, }, }; const store = mockStore(initialState); describe('TransactionHeader', () => { it('should render correctly', () => { const wrapper = shallow( , ); expect(wrapper.dive()).toMatchSnapshot(); }); });