■ [JavaScript][Sinon.JS] Sinon.JSのspyについて Sinonのspyに関するドキュメントはここです。 そもそもspyとは A test spy is a function that records arguments, return value, the value of this and exception thrown (if any) for all its calls. A test spy can be an anonymous function or it can wrap an existing function. 意味は、 Test spyは呼ばれた際の全ての引数、戻り値、thisの値、Exceptionを記録する関数である。Test spyは無名関数にもなるし既存関数をwrapすることもできる。 とドキュメントに書かれている。 spyオブ
![ryuone日記(2012-06-02)](https://cdn-ak-scissors.b.st-hatena.com/image/square/ea44256faf37c32acd273b15a53c383133281f39/height=288;version=1;width=512/https%3A%2F%2Fwww.ryuone.com%2Fdiary%2Fassets%2Fogimage.png)