mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
a5efa7a81a
* test: increase test case of Progress and Comment * test: add test case for Avatar * test: add test case for Dropdown * fix snapshot * fix snapshot * remove console.log * fix lint * add avatar
29 lines
810 B
JavaScript
29 lines
810 B
JavaScript
import React from 'react';
|
|
import { mount } from 'enzyme';
|
|
import Comment from '../index';
|
|
import mountTest from '../../../tests/shared/mountTest';
|
|
import rtlTest from '../../../tests/shared/rtlTest';
|
|
|
|
describe('Comment', () => {
|
|
mountTest(Comment);
|
|
rtlTest(Comment);
|
|
|
|
it('should support empty actions', () => {
|
|
const wrapper = mount(
|
|
<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).toMatchRenderedSnapshot();
|
|
});
|
|
});
|