From c52f2782dee70d08b6b2327e662eadaf385cfaad Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 16 Mar 2020 11:03:35 +0100 Subject: [PATCH] fix test --- src/components/Repository/Readme.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/Repository/Readme.jsx b/src/components/Repository/Readme.jsx index d7395a5d..5050a4de 100644 --- a/src/components/Repository/Readme.jsx +++ b/src/components/Repository/Readme.jsx @@ -1,4 +1,5 @@ import React from 'react' +import PropTypes from 'prop-types' import remark from 'remark' import remarkReact from 'remark-react' import styles from './Readme.module.scss' @@ -19,3 +20,9 @@ export default function Readme({ object }) { ) ) } + +Readme.propTypes = { + object: PropTypes.shape({ + text: PropTypes.string.isRequired + }) +}