failed to update tests. working now

This commit is contained in:
riley
2016-12-15 15:20:02 -07:00
parent 459dda5b26
commit 632956e084
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -15,6 +15,7 @@ const Comment = props => {
Comment.propTypes = {
comment: PropTypes.shape({
id: PropTypes.string,
body: PropTypes.string
}).isRequired,
asset: PropTypes.shape({
@@ -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(<Comment asset={asset} comment={comment} />);
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', () => {