mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 21:00:13 +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 })
|
|
}
|