aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib/shallow-with-store.js
blob: 411aa0455c5d97fec5afd13c9428a122604bf882 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
const shallow = require('enzyme').shallow

module.exports = shallowWithStore

function shallowWithStore (component, store) {
  const context = {
    store,
  }

  return shallow(component, { context })
};