Is there any way to mock a variable inside a function?

前端 未结 0 1300
再見小時候
再見小時候 2021-01-30 16:33

The code works like this

let getToken = await apiCall();

apiCall() calls a few internal functions and populates getToken

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