[Solution found!] 您的代码正在尝试在一个函数上存根Sensor,但已在上定义了该函数Sensor.prototype。 sinon.stub(Sensor, "sample_pressure", function() {return ...
確定! 回上一頁