1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00
metamask-extension/test/lib/shallow-with-store.js
2017-11-25 18:37:12 -06:00

17 lines
346 B
JavaScript

const { shallow, mount } = require('enzyme')
exports.shallowWithStore = function shallowWithStore (component, store) {
const context = {
store,
}
return shallow(component, { context })
}
exports.mountWithStore = function mountWithStore (component, store) {
const context = {
store,
}
return mount(component, { context })
}