aboutsummaryrefslogblamecommitdiffstats
path: root/test/lib/shallow-with-store.js
blob: 2a66adb175e1e42e85416122aed91773634119e5 (plain) (tree)
1
2
3
4
5
6
7
8
                                            
 
                                                                         




                                        







                                                                     
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 })
}