@samitouri / QOS-React / commits / 673f514f81

Fix PropTypes production test so it works with error code system

Andrew Clark committed Mar 2, 2017 at 16:12 UTC 673f514f810e91faf5bc3a35b07f1d397899dfc4
2 files changed +3 -2
scripts/error-codes/codes.json
+2 -1
@@ -142,5 +142,6 @@
142 "140": "Expected hook events to fire for the child before its parent includes it in onSetChildren().",
143 "141": "Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().",
144 "142": "Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).",
145 - "143": "React.Children.only expected to receive a single React element child."
145 + "143": "React.Children.only expected to receive a single React element child.",
146 + "144": "React.PropTypes type checking code is stripped in production."
147 }
src/isomorphic/classic/types/__tests__/ReactPropTypesProduction-test.js
+1 -1
@@ -49,7 +49,7 @@ describe('ReactPropTypesProduction', function() {
49 'prop'
50 );
51 }).toThrowError(
52 - 'React.PropTypes type checking code is stripped in production.'
52 + 'Minified React error #144'
53 );
54 }
55