我想在调用getState
时模拟privateObj.checkstatus(request) var privateObj = require('somepackage')
module.exports = {
getState: function(req, res, next, logService) {
var request = {
url: 'www.google.com'
}
var status = privateObj.checkstatus(request);
if(status=='123') { console.log(status); } logService.info(logMsg);
enter code here
res.send(status);
}}