import React from 'react'; import CollectibleContractOverview from './'; import configureMockStore from 'redux-mock-store'; import { shallow } from 'enzyme'; import { Provider } from 'react-redux'; const mockStore = configureMockStore(); const initialState = { engine: { backgroundState: { NetworkController: { provider: { chainId: 1, }, }, PreferencesController: { selectedAddress: '0x1', }, CollectiblesController: { allCollectibles: { '0x1': { 1: [], }, }, }, }, }, }; const store = mockStore(initialState); describe('CollectibleContractOverview', () => { it('should render correctly', () => { const wrapper = shallow( , ); expect(wrapper.dive()).toMatchSnapshot(); }); });