Skip to content

Commit

Permalink
Suppresses required context type warning if passing i18n object as a …
Browse files Browse the repository at this point in the history
…prop
  • Loading branch information
Alex509 committed Sep 23, 2016
1 parent 924af8f commit 58b6c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/translate-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('translate', () => {
Elem.NOT_KNOWN_REACT_STATIC = 'IS HOISTED ?';
const wrapped = wrap(Elem);
expect(wrapped.WrappedComponent).toBe(Elem);
expect(wrapped.contextTypes.i18n).toBe(React.PropTypes.object.isRequired);
expect(wrapped.contextTypes.i18n).toBe(React.PropTypes.object);
expect(wrapped.childContextTypes.t).toBe(React.PropTypes.func.isRequired);
expect(wrapped.displayName).toBe('Translate(Elem)');
expect(wrapped.namespaces.length).toBe(2);
Expand Down

0 comments on commit 58b6c8e

Please sign in to comment.