Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
best attempt to fix up proptyped
Browse files Browse the repository at this point in the history
  • Loading branch information
matclayton committed Jul 7, 2017
1 parent 3d8f9b3 commit dfcc079
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/decorators/__tests__/testWithRelayRenderer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* @noflow */
import React from 'react';
import Relay from 'react-relay/classic';
import PropTypes from 'prop-types';
import withRelayRenderer from '../withRelayRenderer';
import {shallow} from 'enzyme';
import createMockRelayEnv from '../../../tests/mocks/createMockRelayEnv';
Expand Down Expand Up @@ -125,8 +126,8 @@ describe('withRelayRenderer', () => {
}
}
})(Container);
expect(Wrapper.propTypes.id({id: 'dsf'}, 'id', 'Wrapper')).toBe(null);
expect(Wrapper.propTypes.id({}, 'id', 'Wrapper')).not.toBe(null);
expect(PropTypes.checkPropTypes(Wrapper.propTypes, {id: 'dsf'}, 'id', 'Wrapper')).toBe(null);
expect(PropTypes.checkPropTypes(Wrapper.propTypes, {}, 'id', 'Wrapper')).not.toBe(null);
});

it('should take params from props', () => {
Expand Down

0 comments on commit dfcc079

Please sign in to comment.