How to mock a basic function in Jasmine similar to jest.fn()

后端 未结 0 720
醉酒成梦
醉酒成梦 2020-12-01 00:33

I need to set some mock data which includes a function. I don\'t care to use the function, I just need to set it in my mock data.

In Jest I\'d do something like:

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