Skip to content

Commit

Permalink
Use ref prop type
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 23, 2019
1 parent d0dadf8 commit 60954e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/enzyme-adapter-utils/package.json
Expand Up @@ -35,7 +35,7 @@
"author": "Leland Richardson <leland.richardson@airbnb.com>",
"license": "MIT",
"dependencies": {
"airbnb-prop-types": "^2.12.0",
"airbnb-prop-types": "^2.13.2",
"function.prototype.name": "^1.1.0",
"object.assign": "^4.1.0",
"object.fromentries": "^2.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/enzyme-adapter-utils/src/createMountWrapper.jsx
@@ -1,5 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { ref } from 'airbnb-prop-types';
import RootFinder from './RootFinder';

/* eslint react/forbid-prop-types: 0 */
Expand Down Expand Up @@ -110,7 +111,7 @@ export default function createMountWrapper(node, options = {}) {
props: PropTypes.object.isRequired,
wrappingComponentProps: PropTypes.object,
context: PropTypes.object,
forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
forwardedRef: ref(),
};
WrapperComponent.defaultProps = {
context: null,
Expand Down

0 comments on commit 60954e3

Please sign in to comment.