mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +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 })
|
|
}
|