Merge pull request #75 from ajayyy/experimental

Fixed mocks not responding properly
This commit is contained in:
Ajay Ramachandran
2020-04-23 13:33:32 -04:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -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
});
});
});

View File

@@ -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) {