mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
a2000cb171
[tests] mocks: .reset() is optional GitOrigin-RevId: ad2db1ecc69f57fa9deea0ff124e3f0be212f0ee
22 lines
655 B
JavaScript
22 lines
655 B
JavaScript
const AbstractMockApi = require('./AbstractMockApi')
|
|
|
|
// Currently there is nothing implemented here as we have no acceptance tests
|
|
// for the notifications API. This does however stop errors appearing in the
|
|
// output when the acceptance tests try to connect.
|
|
|
|
class MockNotificationsApi extends AbstractMockApi {
|
|
applyRoutes() {
|
|
this.app.get('/*', (req, res) => res.sendStatus(200))
|
|
this.app.post('/*', (req, res) => res.sendStatus(200))
|
|
}
|
|
}
|
|
|
|
module.exports = MockNotificationsApi
|
|
|
|
// type hint for the inherited `instance` method
|
|
/**
|
|
* @function instance
|
|
* @memberOf MockNotificationsApi
|
|
* @static
|
|
* @returns {MockNotificationsApi}
|
|
*/
|