Skip to content

Commit c231ee9

Browse files
committed
add test
1 parent 00bdba7 commit c231ee9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/components/connector.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ describe('Connector', () => {
2323
expect(connect.bind(connect, () => ({}), {})).toNotThrow();
2424
});
2525

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+
2631
it('target should be extended with state once directly after creation', () => {
2732
let target = {};
2833
connect(() => ({test: 1}), target);

0 commit comments

Comments
 (0)