Jest prompt return value

后端 未结 0 753
北海茫月
北海茫月 2021-02-01 18:34

How to pass a value to prompt and return it without showing popup window and entering a value? I\'ve been trying this:

jest.spyOn(window, "prompt").mock         


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