update dep (#14131)

This commit is contained in:
ztplz 2019-01-07 09:40:55 +08:00 committed by zombieJ
parent fb46e014f0
commit 08ce714db2
4 changed files with 16 additions and 6 deletions

View File

@ -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');
});
});

View File

@ -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);
});

View File

@ -141,7 +141,7 @@ class Tag extends React.Component<TagProps, TagState> {
</Animate>
</Wave>
);
}
};
render() {
return <ConfigConsumer>{this.renderTag}</ConfigConsumer>;

View File

@ -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",