SponsorBlockServer/test/mocks.js

16 lines
367 B
JavaScript
Raw Normal View History

2020-04-01 22:04:04 +02:00
var express = require('express');
var app = express();
var config = require('../src/config.js');
app.post('/ReportChannelWebhook', (req, res) => {
2020-04-23 18:48:02 +02:00
res.sendStatus(200);
2020-04-01 22:04:04 +02:00
});
app.post('/FirstTimeSubmissionsWebhook', (req, res) => {
2020-04-23 18:48:02 +02:00
res.sendStatus(200);
2020-04-01 22:04:04 +02:00
});
module.exports = function createMockServer(callback) {
return app.listen(config.mockPort, callback);
}