The stub() function substitutes the passed function with a fake that returns a predetermined value. Chain it with other Sinon functions like ...
確定! 回上一頁