Skip to content

Commit

Permalink
Fix proptypes errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 authored and edorivai committed May 27, 2020
1 parent dd2a778 commit 9060ced
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/__tests__/Media-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ describe("A <Media> in browser environment", () => {
describe("and a child component", () => {
it("should render child and provide matches as a prop", () => {
const Component = props =>
// eslint-disable-next-line react/prop-types
props.matches === true && <span>matched</span>;

const { container } = renderStrict(
Expand Down Expand Up @@ -107,6 +108,7 @@ describe("A <Media> in browser environment", () => {
describe("and a child component", () => {
it("should render child and provide matches as a prop", () => {
const Component = props =>
// eslint-disable-next-line react/prop-types
props.matches.sm && props.matches.lg && <span>fully matched</span>;

const { container } = renderStrict(
Expand Down Expand Up @@ -278,9 +280,11 @@ describe("A <Media> in browser environment", () => {

describe("and a child component", () => {
it("should render child and provide matches as a prop", () => {
/* eslint-disable react/prop-types */
const Component = props =>
props.matches.sm &&
!props.matches.lg && <span>partially matched</span>;
/* eslint-enable */

const { container } = renderStrict(
<Media queries={queries}>
Expand Down

0 comments on commit 9060ced

Please sign in to comment.