mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 17:09:46 +08:00
7dbd6cee27
* test: removed the comment component's enzyme * feat: removed the comment component's enzyme Co-authored-by: qanglee <545540710@qq.com>
29 lines
839 B
TypeScript
29 lines
839 B
TypeScript
import React from 'react';
|
|
import { render } from '../../../tests/utils';
|
|
import mountTest from '../../../tests/shared/mountTest';
|
|
import rtlTest from '../../../tests/shared/rtlTest';
|
|
import Comment from '../index';
|
|
|
|
describe('Comment', () => {
|
|
mountTest(Comment);
|
|
rtlTest(Comment);
|
|
|
|
it('should support empty actions', () => {
|
|
const wrapper = render(
|
|
<Comment
|
|
actions={[]}
|
|
author={<a>Han Solo</a>}
|
|
content={
|
|
<p>
|
|
We supply a series of design principles, practical patterns and high quality design
|
|
resources (Sketch and Axure), to help people create their product prototypes beautifully
|
|
and efficiently.
|
|
</p>
|
|
}
|
|
datetime="YYYY-MM-DD HH:mm:ss"
|
|
/>,
|
|
);
|
|
expect(wrapper.container.firstChild).toMatchSnapshot();
|
|
});
|
|
});
|