var myfunc = function() {console.log('hello');}function myfunc2() {console.log('hello2');}test("should spy on myfunc", function() {var mySpy = sinon.spy(myfunc);var mySpy2 = sinon.spy(myfunc2);myfunc();myfunc2();sinon.assert.calledOnce(mySpy); // falsesinon.assert.calledOnce(mySpy2); // false});
--
You received this message because you are subscribed to the Google Groups "Sinon.JS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sinonjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.