How to make proper unit test of async function?

前端 未结 0 1368
遇见更好的自我
遇见更好的自我 2020-12-12 22:25

I have a function which checks url address and returns true if that address is valid or no. I need to write tests to that using Jest. To complete this task I wrote testcase

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