mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
fix propTypes.any.weak test
accidentally copied over `.string.weak` and didn't change it
This commit is contained in:
committed by
Paul O’Shannessy
parent
ddcab8be99
commit
3d47177596
@@ -368,7 +368,7 @@ describe('Union Types', function() {
|
||||
});
|
||||
|
||||
it('should have a weak version that returns true/false', function() {
|
||||
expect(typeCheck(Props.string.weak, null)()).toEqual(true);
|
||||
expect(typeCheck(Props.any.weak, null)()).toEqual(true);
|
||||
expect(typeCheck(Props.any.weak.isRequired, null)()).toEqual(false);
|
||||
expect(typeCheck(Props.any.isRequired.weak, null)()).toEqual(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user