Fix PropTypes production test so it works with error code system

This commit is contained in:
Andrew Clark 2017-03-02 16:12:50 -08:00
parent a190cfce29
commit 673f514f81
2 changed files with 3 additions and 2 deletions

View File

@ -142,5 +142,6 @@
"140": "Expected hook events to fire for the child before its parent includes it in onSetChildren().",
"141": "Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().",
"142": "Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).",
"143": "React.Children.only expected to receive a single React element child."
"143": "React.Children.only expected to receive a single React element child.",
"144": "React.PropTypes type checking code is stripped in production."
}

View File

@ -49,7 +49,7 @@ describe('ReactPropTypesProduction', function() {
'prop'
);
}).toThrowError(
'React.PropTypes type checking code is stripped in production.'
'Minified React error #144'
);
}