MyCrypto/spec/utils/shallowWithStore.ts

11 lines
208 B
TypeScript

import { shallow } from 'enzyme';
const shallowWithStore = (component: any, store: any) => {
const context = {
store
};
return shallow(component, { context });
};
export default shallowWithStore;