make tests hit webhook code

This commit is contained in:
Joe Dowd
2020-08-24 22:04:18 +01:00
parent 3085b0e30c
commit 75a62a5729
2 changed files with 14 additions and 1 deletions

View File

@@ -15,6 +15,12 @@ app.post('/CompletelyIncorrectReportWebhook', (req, res) => {
res.sendStatus(200);
});
app.post('/CustomWebhook', (req, res) => {
res.sendStatus(200);
});
module.exports = function createMockServer(callback) {
return app.listen(config.mockPort, callback);
}