import React from 'react'; import { shallow } from 'enzyme'; import AssetList from './'; import configureMockStore from 'redux-mock-store'; import { Provider } from 'react-redux'; const mockStore = configureMockStore(); const initialState = { engine: { backgroundState: { TokenListController: { tokenList: {}, }, }, }, }; const store = mockStore(initialState); describe('AssetList', () => { it('should render correctly', () => { const wrapper = shallow( null} emptyMessage={'Enpty Message'} searchResults={[]} /> , ); expect(wrapper).toMatchSnapshot(); }); });