Simple test spy utilities, framework agnostic. Inspection API similar to sinon.js.
$ component install ericgj/minispy
$ npm install minispy
var spy = ;;;
var spy = ;;assert;
var spy = Spy;;
stub does not pass through the method call but intercepts it.
The injected spy thus acts more like a classical mock.
var spy = Spy;assert;
The API for inspecting spy results is similar to sinon.js,
except using methods instead of properties (e.g.
The following inspection methods from sinon.js are built-in:
spy.calls() returns an enumerable, allowing for
easily defined custom finders and chaining. For example, to select
"the return values from all spied calls with at least one argument":