提交 08ce714d 编写于 作者: Z ztplz 提交者: zombieJ

update dep (#14131)

上级 fb46e014
......@@ -148,7 +148,12 @@ describe('Input allowClear', () => {
.simulate('click');
expect(argumentEventObject.type).toBe('click');
expect(argumentEventObjectValue).toBe('');
expect(wrapper.find('input').at(0).getDOMNode().value).toBe('');
expect(
wrapper
.find('input')
.at(0)
.getDOMNode().value,
).toBe('');
});
it('should trigger event correctly on controlled mode', () => {
......@@ -165,6 +170,11 @@ describe('Input allowClear', () => {
.simulate('click');
expect(argumentEventObject.type).toBe('click');
expect(argumentEventObjectValue).toBe('');
expect(wrapper.find('input').at(0).getDOMNode().value).toBe('111');
expect(
wrapper
.find('input')
.at(0)
.getDOMNode().value,
).toBe('111');
});
});
......@@ -146,7 +146,7 @@ describe('Modal.confirm triggers callbacks correctly', () => {
it('could be Modal.destroyAll', () => {
jest.useFakeTimers();
['info', 'success', 'warning', 'error'].forEach((type) => {
['info', 'success', 'warning', 'error'].forEach(type => {
Modal[type]({
title: 'title',
content: 'content',
......@@ -154,7 +154,7 @@ describe('Modal.confirm triggers callbacks correctly', () => {
expect($$(`.ant-modal-confirm-${type}`)).toHaveLength(1);
});
Modal.destroyAll();
['info', 'success', 'warning', 'error'].forEach((type) => {
['info', 'success', 'warning', 'error'].forEach(type => {
jest.runAllTimers();
expect($$(`.ant-modal-confirm-${type}`)).toHaveLength(0);
});
......
......@@ -141,7 +141,7 @@ class Tag extends React.Component<TagProps, TagState> {
</Animate>
</Wave>
);
}
};
render() {
return <ConfigConsumer>{this.renderTag}</ConfigConsumer>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册