UNPKG

curl-amd

Version:

curl.js is small, fast, extensible module loader that handles AMD, CommonJS Modules/1.1, CSS, HTML/text, and legacy scripts.

21 lines (14 loc) 419 B
define(function () { function Spy () { var count, spy; count = 0; spy = function () {}; spy.calledNever = function () { return count == 0; }; spy.calledOnce = function () { return count == 1; }; spy.calledTwice = function () { return count == 2; }; spy.calledMany = function (howMany) { return count == howMany; }; spy.callCount = function () { return count; }; return spy; } return Spy; });