From 632956e0847a4abefdd4621fb7873556c612bd87 Mon Sep 17 00:00:00 2001 From: riley Date: Thu, 15 Dec 2016 15:20:02 -0700 Subject: [PATCH] failed to update tests. working now --- client/coral-plugin-history/Comment.js | 1 + tests/client/coral-plugin-history/Comment.spec.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/coral-plugin-history/Comment.js b/client/coral-plugin-history/Comment.js index 37a93df13..fd515e628 100644 --- a/client/coral-plugin-history/Comment.js +++ b/client/coral-plugin-history/Comment.js @@ -15,6 +15,7 @@ const Comment = props => { Comment.propTypes = { comment: PropTypes.shape({ + id: PropTypes.string, body: PropTypes.string }).isRequired, asset: PropTypes.shape({ diff --git a/tests/client/coral-plugin-history/Comment.spec.js b/tests/client/coral-plugin-history/Comment.spec.js index 7d49630d6..2098fa1b3 100644 --- a/tests/client/coral-plugin-history/Comment.spec.js +++ b/tests/client/coral-plugin-history/Comment.spec.js @@ -5,7 +5,7 @@ import Comment from '../../../client/coral-plugin-history/Comment'; describe('coral-plugin-history/Comment', () => { let render; - const comment = {body: 'this is a comment'}; + const comment = {body: 'this is a comment', id: '123'}; const asset = {url: 'https://google.com'}; beforeEach(() => { @@ -21,7 +21,7 @@ describe('coral-plugin-history/Comment', () => { it('should render the asset url as a link', () => { const wrapper = mount(); expect(wrapper.find('.myCommentAnchor')).to.have.length(1); - expect(wrapper.find('.myCommentAnchor').text()).to.equal('https://google.com'); + expect(wrapper.find('.myCommentAnchor').text()).to.equal('https://google.com#123'); }); it('should render the comment with styles', () => {