mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Fixed mocks not responding properly
This commit is contained in:
parent
a3b01e4eae
commit
546ded3bdd
2 changed files with 3 additions and 3 deletions
2
test.js
2
test.js
|
@ -34,7 +34,7 @@ var mockServer = createMockServer(() => {
|
|||
mocha.run(function(failures) {
|
||||
mockServer.close();
|
||||
server.close();
|
||||
process.exit(failures ? 1 : 0); // exit with non-zero status if there were failures
|
||||
process.exitCode = failures ? 1 : 0; // exit with non-zero status if there were failures
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -4,11 +4,11 @@ var app = express();
|
|||
var config = require('../src/config.js');
|
||||
|
||||
app.post('/ReportChannelWebhook', (req, res) => {
|
||||
res.status(200);
|
||||
res.sendStatus(200);
|
||||
});
|
||||
|
||||
app.post('/FirstTimeSubmissionsWebhook', (req, res) => {
|
||||
res.status(200);
|
||||
res.sendStatus(200);
|
||||
});
|
||||
|
||||
module.exports = function createMockServer(callback) {
|
||||
|
|
Loading…
Reference in a new issue