update tests

This commit is contained in:
Riley Davis
2017-01-12 15:25:36 -07:00
parent 44b41b031e
commit 0eefd3364b
8 changed files with 25 additions and 11 deletions
@@ -55,6 +55,10 @@ export const fetchFlaggedQueue = () => {
dispatch({type: commentTypes.COMMENTS_MODERATION_QUEUE_FETCH_REQUEST});
return coralApi('/queue/comments/flagged')
.then(comments => {
comments.forEach(comment => comment.flagged = true);
return comments;
})
.then(addUsersCommentsActions.bind(this, dispatch));
};
};
@@ -56,7 +56,7 @@ export default ({onTabClick, ...props}) => (
<div className={`mdl-tabs__panel ${styles.listContainer}`} id='flagged'>
<CommentList
suspectWords={props.settings.settings.wordlist.suspect}
isActive={props.activeTab === 'rejected'}
isActive={props.activeTab === 'flagged'}
singleView={props.singleView}
commentIds={props.flaggedIds}
comments={props.comments.byId}