ant-design/components/upload/__tests__/requests.js

12 lines
207 B
JavaScript
Raw Normal View History

2017-10-15 17:30:50 +08:00
export const successRequest = ({ onSuccess, file }) => {
setTimeout(() => {
onSuccess(null, file);
});
};
export const errorRequest = ({ onError }) => {
setTimeout(() => {
onError();
});
};