ant-design/components/upload/__tests__/requests.js
2017-10-15 17:34:03 +08:00

12 lines
207 B
JavaScript

export const successRequest = ({ onSuccess, file }) => {
setTimeout(() => {
onSuccess(null, file);
});
};
export const errorRequest = ({ onError }) => {
setTimeout(() => {
onError();
});
};