mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 02:58:09 +01:00
17 lines
346 B
JavaScript
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 })
|
|
}
|