Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter committed Jul 26, 2021
1 parent 0b0ca41 commit 1876b2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/views/Comment/CommentAvatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const CommentAvatar = React.forwardRef(function (props, ref) {
const ElementType = getElementType(CommentAvatar, props)

return (
<ElementType {...rootProps} className={classes}>
<ElementType {...rootProps} className={classes} ref={ref}>
{createHTMLImage(src, { autoGenerateKey: false, defaultProps: imageProps })}
</ElementType>
)
Expand Down
2 changes: 1 addition & 1 deletion src/views/Comment/CommentGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const CommentGroup = React.forwardRef(function (props, ref) {
const ElementType = getElementType(CommentGroup, props)

return (
<ElementType {...rest} className={classes}>
<ElementType {...rest} className={classes} ref={ref}>
{childrenUtils.isNil(children) ? content : children}
</ElementType>
)
Expand Down
2 changes: 1 addition & 1 deletion test/specs/views/Comment/CommentAction-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as common from 'test/specs/commonTests'

describe('CommentAction', () => {
common.isConformant(CommentAction)
common.forwardsRef(CommentAction)
common.forwardsRef(CommentAction, { tagName: 'a' })
common.rendersChildren(CommentAction)

it('renders an a element by default', () => {
Expand Down

0 comments on commit 1876b2c

Please sign in to comment.