file.ts
function test1(request: Request,response:Response){
const entity = this.test2(request)
response.send(entity)
}
function test2(request:Request,response:Response){
return request.originalurl
}
MyScenrio
我试图在test1()函数中编写测试。test1()函数不返回任何值,说明如何在此函数中编写测试用例。