Fixed mapStateToProps test to handle non-static mapStateToProps
This commit is contained in:
@@ -470,7 +470,7 @@ describe("bound system", function(){
|
|||||||
it("allows container components to provide their own `mapStateToProps` function", function() {
|
it("allows container components to provide their own `mapStateToProps` function", function() {
|
||||||
// Given
|
// Given
|
||||||
class ContainerComponent extends PureComponent {
|
class ContainerComponent extends PureComponent {
|
||||||
static mapStateToProps(nextState, props) {
|
mapStateToProps(nextState, props) {
|
||||||
return {
|
return {
|
||||||
"abc": "This came from mapStateToProps"
|
"abc": "This came from mapStateToProps"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user