Difference between fake, spy, stub and mock of sinon library ( sinon fake vs spy vs stub vs mock )
Just for understanding purpose call: FuncInfoCollector = is a Function that records arguments, return value, the value of this(context) and exception thrown (if any) for all of its calls. (this FuncInfoCollector is dummy name given by me, it is not present in SINON lib) Fake = FuncInfoCollector + can only create a fake function. To … Read more