1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test/lib/shallow-with-store.js

21 lines
349 B
JavaScript
Raw Normal View History

2017-11-26 01:37:12 +01:00
const { shallow, mount } = require('enzyme')
2017-11-02 18:28:41 +01:00
module.exports = {
shallowWithStore,
mountWithStore,
}
function shallowWithStore (component, store) {
2017-11-02 18:28:41 +01:00
const context = {
store,
}
return shallow(component, {context})
2017-11-26 01:37:12 +01:00
}
function mountWithStore (component, store) {
2017-11-26 01:37:12 +01:00
const context = {
store,
}
return mount(component, {context})
2017-11-26 01:37:12 +01:00
}