testing a function with “new” keyword in sinon

后端 未结 0 1727
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-08 13:18

I have a a function within an ES6 class that calls the constructor of another class using the "new" keyword. When I use sinon to test that class, I get an error statin

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