mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
fix propTypes.any.weak test
accidentally copied over `.string.weak` and didn't change it
This commit is contained in:
1 parent
ddcab8be99
commit
3d47177596
1 file changed
+1
-1
@@ -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