diff --git a/client/coral-framework/constants/assets.js b/client/coral-framework/constants/assets.js index 0224e0945..3883ee835 100644 --- a/client/coral-framework/constants/assets.js +++ b/client/coral-framework/constants/assets.js @@ -1,3 +1,3 @@ export const MULTIPLE_ASSETS_REQUEST = 'MULTIPLE_ASSETS_REQUEST'; export const MULTIPLE_ASSETS_SUCCESS = 'MULTIPLE_ASSETS_SUCCESS'; -export const MULTIPLE_ASSSETS_FAILURE = 'MULTIPLE_ASSSETS_FAILURE'; \ No newline at end of file +export const MULTIPLE_ASSSETS_FAILURE = 'MULTIPLE_ASSSETS_FAILURE'; 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', () => {