How to stub child class using sinon

前端 未结 0 1115
隐瞒了意图╮
隐瞒了意图╮ 2020-12-21 23:39

I have two classes, a parent class and a child of that.

class Api {
   constructor(stuff) {
      ...set stuff
   }

   doSomething() {
      ...doesSomething         


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