How to test a function that returns fetch promise

前端 未结 0 1544
梦毁少年i
梦毁少年i 2020-12-08 04:57

I have never had to test a function like this before. Any ideas would be appreciated. The function basically passed a url to fetch and returns json. The url tells fetch whic

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