MockNotificationsApi.js 655 B

12345678910111213141516171819202122
  1. const AbstractMockApi = require('./AbstractMockApi')
  2. // Currently there is nothing implemented here as we have no acceptance tests
  3. // for the notifications API. This does however stop errors appearing in the
  4. // output when the acceptance tests try to connect.
  5. class MockNotificationsApi extends AbstractMockApi {
  6. applyRoutes() {
  7. this.app.get('/*', (req, res) => res.sendStatus(200))
  8. this.app.post('/*', (req, res) => res.sendStatus(200))
  9. }
  10. }
  11. module.exports = MockNotificationsApi
  12. // type hint for the inherited `instance` method
  13. /**
  14. * @function instance
  15. * @memberOf MockNotificationsApi
  16. * @static
  17. * @returns {MockNotificationsApi}
  18. */