Open elsassph opened 3 years ago
There is no nice way to spy just one function of an object.
aa = { someFun: function() ? "doing something" end function } ' what about? _brs_.spyFunction(aa, "someFun") aa.someFun("hey") ' does nothing aa.someFun.called ' true aa.someFun.calledWith ' ["hey"] aa.someFun.calledTimes ' 1
There is no nice way to spy just one function of an object.