mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
update dep (#14131)
This commit is contained in:
parent
fb46e014f0
commit
08ce714db2
@ -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>;
|
||||
|
@ -58,7 +58,7 @@
|
||||
"rc-calendar": "~9.10.3",
|
||||
"rc-cascader": "~0.17.0",
|
||||
"rc-checkbox": "~2.1.5",
|
||||
"rc-collapse": "~1.10.0",
|
||||
"rc-collapse": "~1.10.2",
|
||||
"rc-dialog": "~7.3.0",
|
||||
"rc-drawer": "~1.7.6",
|
||||
"rc-dropdown": "~2.4.1",
|
||||
|
Loading…
Reference in New Issue
Block a user