overleaf/services/web/test/acceptance/src/mocks/MockThirdPartyDataStoreApi.js
Brian Gough 4589a57774 Merge pull request #10637 from overleaf/bg-delete-user-from-dropbox
delete user data from dropbox

GitOrigin-RevId: d586c73b4500f4fe718927f537ae770356eaefc1
2022-11-29 09:04:33 +00:00

23 lines
501 B
JavaScript

const AbstractMockApi = require('./AbstractMockApi')
class MockThirdPartyDataStoreApi extends AbstractMockApi {
reset() {}
deleteUser(req, res) {
res.sendStatus(200)
}
applyRoutes() {
this.app.delete('/user/:user_id', (req, res) => this.deleteUser(req, res))
}
}
module.exports = MockThirdPartyDataStoreApi
// type hint for the inherited `instance` method
/**
* @function instance
* @memberOf MockThirdPartyDataStoreApi
* @static
* @returns {MockThirdPartyDataStoreApi}
*/