diff --git a/test.json b/test.json index 0dbb51d..922bdd2 100644 --- a/test.json +++ b/test.json @@ -16,5 +16,12 @@ "privateDBSchema": "./databases/_private.db.sql", "mode": "test", "readOnly": false, - "webhooks": [] + "webhooks": [{ + "url": "http://127.0.0.1:8081/CustomWebhook", + "key": "superSecretKey", + "scopes": [ + "vote.up", + "vote.down" + ] + }] } diff --git a/test/mocks.js b/test/mocks.js index b58a47f..aeaed4b 100644 --- a/test/mocks.js +++ b/test/mocks.js @@ -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); } \ No newline at end of file