salix/front/core/mocks/watcher.js

22 lines
452 B
JavaScript
Raw Permalink Normal View History

module.exports = {
2018-09-24 12:51:27 +00:00
submit: () => {
2018-10-08 11:09:30 +00:00
return {
then: callback => {
callback({data: {id: 1234}});
}
};
2018-09-24 12:51:27 +00:00
},
realSubmit: () => {
2018-10-08 11:09:30 +00:00
return {
then: callback => {
callback({data: {id: 1234}});
}
};
},
check: () => {},
notifySaved: () => {},
setDirty: () => {},
2018-09-19 13:05:07 +00:00
setPristine: () => {},
updateOriginalData: () => {}
};