MyCrypto/spec/utils/shallowWithStore.ts

11 lines
198 B
TypeScript

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