How to mock requestcallback with Jest

后端 未结 0 838
甜味超标
甜味超标 2021-02-10 04:02

i am tring to mock requestcallback with jest but not able to mock

this is my function

await requestPromise.get(options, ((err, resp) => {
    if (err) {         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题