diff --git a/test/components/root.spec.jsx b/test/components/root.spec.jsx index 1f7beae..128d44a 100644 --- a/test/components/root.spec.jsx +++ b/test/components/root.spec.jsx @@ -5,16 +5,25 @@ import chaiEnzyme from 'chai-enzyme' chai.use(chaiEnzyme()) import Root from '../../src/components/root.jsx' -import makeStore from '../../src/store' -const store = makeStore() -let output +// this fails with: +// Invariant Violation: Could not find "store" in either the context or props of +// "Connect(Counter)". Either wrap the root component in a , or +// explicitly pass "store" as a prop to "Connect(Counter)". -exports[''] = { +const output = shallow() + +// FWIW, this also fails with the same error: - before: () => { - output = shallow(, { context: { store } }) - }, +// import { Provider } from 'react-redux' +// import makeStore from '../../src/store' +// const store = makeStore() +// const output = shallow( +// +// +// +// ) - 'is a
': () => expect(output).to.have.tagName('div'), +exports[''] = { + 'is a
': () => expect(output.type()).to.equal('div'), }