mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Fix PropTypes production test so it works with error code system
This commit is contained in:
@@ -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."
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ describe('ReactPropTypesProduction', function() {
|
||||
'prop'
|
||||
);
|
||||
}).toThrowError(
|
||||
'React.PropTypes type checking code is stripped in production.'
|
||||
'Minified React error #144'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user