Skip to content

Commit

Permalink
Fix tests after eslint-plugin-react update
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Feldmann committed Jul 18, 2017
1 parent d3d1d2c commit bc2d230
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion __tests__/fixtures/react/invalid.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* to eschew the "id" and "for" unless you want to employ some very hacky solutions
*/
import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.css';

class Accordion extends React.Component {
Expand All @@ -18,7 +19,7 @@ class Accordion extends React.Component {
}
}

const { number, string } = React.PropTypes;
const { number, string } = PropTypes;

Accordion.propTypes = {
label: string,
Expand Down
3 changes: 2 additions & 1 deletion __tests__/fixtures/react/valid.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* to eschew the "id" and "for" unless you want to employ some very hacky solutions
*/
import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.css';

const Accordion = ({ name, value, checked, label, children }) => {
Expand All @@ -16,7 +17,7 @@ const Accordion = ({ name, value, checked, label, children }) => {
);
};

const { number, string } = React.PropTypes;
const { number, string } = PropTypes;

Accordion.propTypes = {
label: string,
Expand Down

0 comments on commit bc2d230

Please sign in to comment.