Skip to content

Commit c54a8b8

Browse files
committedAug 6, 2015
fixing test reference to bindActionCreators which was renamed bindDispatch
1 parent 9256e9d commit c54a8b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎test/components/connect.spec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ describe('React', () => {
343343
expect(spy.calls.length).toBe(3);
344344
});
345345

346-
it('should throw an error if select, bindActionCreators, or merge returns anything but a plain object', () => {
346+
it('should throw an error if select, bindDispatch, or merge returns anything but a plain object', () => {
347347
const store = createStore(() => ({}));
348348

349349
function makeContainer(select, bindActionCreators, merge) {
@@ -389,23 +389,23 @@ describe('React', () => {
389389
{ () => makeContainer(() => ({}), () => 1, () => ({})) }
390390
</Provider>
391391
);
392-
}).toThrow(/bindActionCreators/);
392+
}).toThrow(/bindDispatch/);
393393

394394
expect(() => {
395395
TestUtils.renderIntoDocument(
396396
<Provider store={store}>
397397
{ () => makeContainer(() => ({}), () => 'hey', () => ({})) }
398398
</Provider>
399399
);
400-
}).toThrow(/bindActionCreators/);
400+
}).toThrow(/bindDispatch/);
401401

402402
expect(() => {
403403
TestUtils.renderIntoDocument(
404404
<Provider store={store}>
405405
{ () => makeContainer(() => ({}), () => new AwesomeMap(), () => ({})) }
406406
</Provider>
407407
);
408-
}).toThrow(/bindActionCreators/);
408+
}).toThrow(/bindDispatch/);
409409

410410
expect(() => {
411411
TestUtils.renderIntoDocument(

0 commit comments

Comments
 (0)