mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
test: removed the comment component's enzyme (#37196)
* test: removed the comment component's enzyme * feat: removed the comment component's enzyme Co-authored-by: qanglee <545540710@qq.com>
This commit is contained in:
parent
4758d561c5
commit
7dbd6cee27
@ -1,5 +1,5 @@
|
||||
import { mount } from 'enzyme';
|
||||
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';
|
||||
@ -9,7 +9,7 @@ describe('Comment', () => {
|
||||
rtlTest(Comment);
|
||||
|
||||
it('should support empty actions', () => {
|
||||
const wrapper = mount(
|
||||
const wrapper = render(
|
||||
<Comment
|
||||
actions={[]}
|
||||
author={<a>Han Solo</a>}
|
||||
@ -23,6 +23,6 @@ describe('Comment', () => {
|
||||
datetime="YYYY-MM-DD HH:mm:ss"
|
||||
/>,
|
||||
);
|
||||
expect(wrapper.render()).toMatchSnapshot();
|
||||
expect(wrapper.container.firstChild).toMatchSnapshot();
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user