import React from 'react'; import { shallow } from 'enzyme'; import MessageSign from './'; import configureMockStore from 'redux-mock-store'; import { Provider } from 'react-redux'; const mockStore = configureMockStore(); const initialState = { engine: { backgroundState: { PreferencesController: { selectedAddress: '0x0', }, }, }, }; const store = mockStore(initialState); describe('MessageSign', () => { it('should render correctly', () => { const wrapper = shallow( , ); expect(wrapper).toMatchSnapshot(); }); });