@samitouri / QOS-React-2 / commits / 3d47177596

fix propTypes.any.weak test

accidentally copied over `.string.weak` and didn't change it

Cheng Lou committed Jan 12, 2014 at 20:40 UTC 3d47177596e9782de36a5cd7065e01c69897b2bb
1 file changed +1 -1
src/core/__tests__/ReactPropTypes-test.js
+1 -1
@@ -368,7 +368,7 @@ describe('Union Types', function() {
368 });
369
370 it('should have a weak version that returns true/false', function() {
371 - expect(typeCheck(Props.string.weak, null)()).toEqual(true);
371 + expect(typeCheck(Props.any.weak, null)()).toEqual(true);
372 expect(typeCheck(Props.any.weak.isRequired, null)()).toEqual(false);
373 expect(typeCheck(Props.any.isRequired.weak, null)()).toEqual(false);
374 });