fix propTypes.any.weak test
accidentally copied over `.string.weak` and didn't change it
This commit is contained in:
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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue