Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should throw when store is not in scope', () => {
const getAsyncState = sinon.stub();
const WrappedComponent = fetch(getAsyncState)(Component);
expect(mount.bind(null, )).to.throw;
});
});
it('should throw when store is not in scope', () => {
const routerState = createMockRouterState();
expect(mount.bind(null,
,
)).to.throw;
});
it('should throw when store is not in scope', () => {
const getAsyncState = sinon.stub();
const WrappedComponent = fetch(getAsyncState, {
forceInitialFetch: false,
})(Component);
expect(mount.bind(null, )).to.throw;
});
});