add jsdom. tests pass

This commit is contained in:
Riley Davis
2016-12-14 13:22:01 -07:00
parent 755d090289
commit eac53a58b4
6 changed files with 177 additions and 18 deletions
+10 -8
View File
@@ -4,15 +4,17 @@ import styles from './CommentHistory.css';
const CommentHistory = props => {
return (
<div className={styles.header}>
<div className={`${styles.header} commentHistory`}>
<h2>All Comments</h2>
{props.comments.map((comment, i) => {
const asset = props.assets.find(asset => asset.id === comment.asset_id);
return <Comment
key={i}
comment={comment}
asset={asset} />;
})}
<div className="commentHistory__list">
{props.comments.map((comment, i) => {
const asset = props.assets.find(asset => asset.id === comment.asset_id);
return <Comment
key={i}
comment={comment}
asset={asset} />;
})}
</div>
</div>
);
};