We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00bdba7 commit c231ee9Copy full SHA for c231ee9
test/components/connector.spec.js
@@ -23,6 +23,11 @@ describe('Connector', () => {
23
expect(connect.bind(connect, () => ({}), {})).toNotThrow();
24
});
25
26
+ it('Should throw when selector does not return a plain object as target', () => {
27
+ expect(connect.bind(connect, state => state.foo, {})).toThrow();
28
+ });
29
+
30
31
it('target should be extended with state once directly after creation', () => {
32
let target = {};
33
connect(() => ({test: 1}), target);
0 commit comments