Fix PropTypes production test so it works with error code system
This commit is contained in:
parent
a190cfce29
commit
673f514f81
|
@ -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'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue