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