fix: log listening port, remove error (#21)

* fix: log listening port

* fix: remove empty line

* chore: remove unused error

* spacing, ey...

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
This commit is contained in:
Tom
2021-08-24 12:15:38 -05:00
committed by GitHub
parent 32bb55e7c4
commit be86d60221
2 changed files with 7 additions and 9 deletions
+3 -4
View File
@@ -49,11 +49,10 @@ module.exports = function (app) {
res.type('txt').send(data.toString());
});
});
let error;
app.get('/_api/get-tests', cors(), function(req, res, next){
console.log(error);
if(!error && process.env.NODE_ENV === 'test') return next();
console.log('requested');
if(process.env.NODE_ENV === 'test') return next();
res.json({status: 'unavailable'});
},
function(req, res, next){