{"_id":"nodemock","_rev":"55-cd3933de9ed9af6701b891e2832fd639","name":"nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","dist-tags":{"latest":"0.3.5"},"versions":{"0.1.0beta":{"name":"nodemock","version":"0.1.0beta","directories":{"lib":"./lib"},"main":"./lib/nodemock","engines":{"node":">=0.2.0"},"description":"Simple Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_id":"nodemock@0.1.0beta","_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.4.0","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"7c2c26b1fab88e7f1b101e84449ef7a3566d7481","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.1.0beta.tgz","integrity":"sha512-ClanRz73X6TD7W2V7r2WxeUNSQnl9lZSfC3g/q0Ze5mectnx+LsVlrWRwq9BOXtOgfoHGA0GVjT8dz9EOlnN+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAjQf5xiA6YRVL2LVl4wkRS1fKVi6jPYxf0hQS3345QFAiB6NFl/Rc/r0erjdsq6LtJ30kNlqFKEjry9e3A5kL69mA=="}]}},"0.2.0beta":{"name":"nodemock","version":"0.2.0beta","directories":{"lib":"./lib"},"main":"./lib/nodemock","engines":{"node":">=0.2.0"},"description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","license":"The MIT License","repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_id":"nodemock@0.2.0beta","_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.4.0","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"c01fda3f2a365abf9bf42618fdca22f097e6a0e7","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.0beta.tgz","integrity":"sha512-7XltT849KPt+9We3MD4MOpRgUFfXDGtR1YbTphcs1b6LmhBBrBNBVU0vXg4rbXIWtaZT+wENsXAGBdyhMTQpvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAF4M9exxP5OJ3hVFe7pl8Jr7F1H0p39Ap+enXqmqyHAIgJfIEs6ta3Md1wOpE26Q6w9zRvubipuI4FfnbE+28lrM="}]}},"0.2.1beta":{"name":"nodemock","version":"0.2.1beta","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_id":"nodemock@0.2.1beta","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.4.0","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"5eb122aedc830c475ed9d5d58e2cc5388bfad4e2","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.1beta.tgz","integrity":"sha512-H+J3tvJgaPYe1zXgR0k5s9aiLQRcENocluragdVqSXQE/zk1Voc8dOa94+oXU8S7jl0gjRWo+2UMk3htYer9xA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF/hobtQT10TvCiUMgFO8njgfOSywiRAFbTq/E1DcLV5AiBXCliVl28jKkxKT1zfwmLxlPvCekADSP0cIc1wIkVILg=="}]}},"0.2.2beta":{"name":"nodemock","version":"0.2.2beta","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_id":"nodemock@0.2.2beta","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.4.0","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"a4773e804b6083a14e2b5aa3e0c8733d507c7611","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.2beta.tgz","integrity":"sha512-S++3bd3FRRc7dM0Q+gfHkpy2tLig+4KJ4jMeXCjHeRaructxxz+b/4C9Nl4VJr5j8iBJ8I7eQgg4TyBvcE/igQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAHc5x3PnHrtZEOSJQBWfdxx63eoF47mnCFiszuijtanAiBN8DeHStqwTH+S4YsLI0in8URbm1uTYfyKVaTuFUUpSA=="}]}},"0.2.3beta":{"name":"nodemock","version":"0.2.3beta","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_id":"nodemock@0.2.3beta","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.4.0","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"e4edf1736c805bdece1c1d576f0962825c88cb6a","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.3beta.tgz","integrity":"sha512-Emf5wi2DeT8VsDfEf4yjrrQtUpWI2sogzM+fDVyQUrGoWBuRYSU0/afoU0PoaEzsOCSmmHh7EYbqNORqowE3Rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCN53J6wfXYlsbfInoqJl6nzDOgVmlOFec9OIhPT8aA0gIhALSXoQCJXmw3WaCS+hyTTOSM9ohY7uE+TUIgZBcRSXOQ"}]}},"0.2.4beta":{"name":"nodemock","version":"0.2.4beta","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_id":"nodemock@0.2.4beta","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.4.0","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"0aa906e04e932c0f2f57bf0f69e7fa96edcec5fd","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.4beta.tgz","integrity":"sha512-PQKM0JR/bAbsckAQbBUOG8Flar2za4Qfm4OH0YNBJMVdF06UjYLPhmDa2Ms0GxYxfaov72xUaSdrEQV2pzjdhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAv8ApOyi3934DXNhA/HbHdBq2749Ju8XEDMFOZuTvSMAiEAzOv9bpK2Vk1GgS7QQRiVHehqKNiTPIGJbnPoGC8epDE="}]}},"0.2.5beta":{"name":"nodemock","version":"0.2.5beta","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_id":"nodemock@0.2.5beta","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.4.0","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"9d3b5dc6eba3e4729e2b36ce2829442eec6f0f54","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.5beta.tgz","integrity":"sha512-ggNsaB3yDV5RnxiX0MBvgxRAOwzGx48zTIoHGoNgoC4btCdF2SxR9fBIkZp5qcragXbAWS5g+wBGlOqp8N5mcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx3y53Gw2ENvWYM+qtItOhxjh7tIWR5sZPRJBIHzmYcwIhAMvQLU2BtBn3fUzoGc1pPP16Z/Bq+FYkg1tEnOwE4qxh"}]}},"0.2.6beta":{"name":"nodemock","version":"0.2.6beta","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_id":"nodemock@0.2.6beta","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.4.0","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"97fcc26e451f1270e0a76eae32e7d0a9977780a2","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.6beta.tgz","integrity":"sha512-g58+wnH7laFfDLs7aCBQqnlTJXEZte4Z798AUiYzjUpxQnYgAXLn/e5RwbuQ9puG40MSbENnV5jvEecc1Jj7Sg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2PgIktC+idq0rZErE39nTZ/NxbtY/uvnM1peNSlnI1AIgQ6nvemVZ//OwUxCU0rAlt6iqJGWq4Gz0qnjs+RbNQ5U="}]}},"0.2.7beta":{"name":"nodemock","version":"0.2.7beta","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_id":"nodemock@0.2.7beta","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.4.0","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"17904c76ca39cf149bec157361a904cfc70964dd","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.7beta.tgz","integrity":"sha512-Cvo5PJ0fg8LKNkX+1CvaoAthIeAuMrkBAY9GMHuTOmyJ757LKyyDD/ed/16/44TzsPYtmSeFjHMBbjBdpje7SA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBwtierzO6FMsugmYF0TFovG5FzuyHK8nk8KcwEATebOAiBOYOb0Nh/YeTO8lJlLZYAgdf9M7neICXLp1NA5y91f7g=="}]}},"0.2.8beta":{"name":"nodemock","version":"0.2.8beta","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_id":"nodemock@0.2.8beta","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.5","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"bf72896d2093c8a039eca62fdbc6d7c7e42384f3","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.8beta.tgz","integrity":"sha512-/8vFLx6PunqpynzGwqwQSb+zAu9eIyG8+hmqGYsQQjLSjl7jdi2Ytscc89LP/14z8TbrW1hLBFhxvnb4DRKa8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICkYf/8b9KPz3BryOP+C0ERYqQGIKSOLPbbUQZscicHVAiEAtjpY3gXz38D9lXATMWBD5si3doHHbpCtA0gD4J7Haqw="}]}},"0.2.9beta":{"name":"nodemock","version":"0.2.9beta","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_id":"nodemock@0.2.9beta","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.10","_nodeVersion":"v0.4.5","_defaultsLoaded":true,"dist":{"shasum":"b01a1cb66715d27ffd719408962f92605bb32eab","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.9beta.tgz","integrity":"sha512-lEkZLnG+nyP4ylVgkK/sESBYSS0qRN75L8kmnMVVIchzScFnsZuz4LIAnO5L2TzubOYnNISEyNQrl4epxzlIOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICe2DjyT43Kd4tIQiAM1mND3GsjLRmA7+WEzwfmqETDWAiEAlpJlCeSPCZ1aClXKBhlO3PFO8ff3/xAZiNnLrhXj2KQ="}]},"scripts":{}},"0.2.10beta":{"name":"nodemock","version":"0.2.10beta","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_id":"nodemock@0.2.10beta","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.10","_nodeVersion":"v0.4.5","_defaultsLoaded":true,"dist":{"shasum":"c11aa861aed316826a83e15e3c09cbc1e3e701ac","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.10beta.tgz","integrity":"sha512-f6nJat3hB5orkCeR7n9oZ7p/3tDvL7Hpinc7BUnDvvBnqhMCoo62Omb4uJBXf8SjSsiW7BQYzPeEEfRiVAo8iA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrSj4sdUP3O+NX2rAKHZ4p7V/9n0Kf15UDK0B7t0iDeAIgfT+/59zTTO7bTvI66Jv2JB7giAknrE4vxleYKN6fl2Q="}]},"scripts":{}},"0.2.11beta":{"name":"nodemock","version":"0.2.11beta","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_npmJsonOpts":{"file":"/home/arunoda/.npm/nodemock/0.2.11beta/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"nodemock@0.2.11beta","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.5","_defaultsLoaded":true,"dist":{"shasum":"9af07a388aebcdc476e0d2755546b7b7f0e495b4","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.11beta.tgz","integrity":"sha512-QUKr7ZwKdb9TodwwN/U+/FGXafKOS14VIGaqtYVV9JJKcuoMftT3tLdjE3rSuRWCcMZoMc/bdKEpAmzMv8ePqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICqj+31GQ8a4/5CooNPMN5ZDIoiklTn8fVtD2IIfUbZTAiB2KWSDww5WOEECGgS4MAypTkTjYfOqldsiORGnPx/t0A=="}]},"scripts":{}},"0.2.12":{"name":"nodemock","version":"0.2.12","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_npmJsonOpts":{"file":"/home/arunoda/.npm/nodemock/0.2.12/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"nodemock@0.2.12","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.5","_defaultsLoaded":true,"dist":{"shasum":"9c15c4795dba87442345cd04b49dc6f37e7e61cd","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.12.tgz","integrity":"sha512-d+Daf02ZRKoGK2vrMBS7bFrFrxE/EJc5STX8xSy+XbQQIIpsZklET5SsjyjHYxDVmKmW7/zVA48eG6PjNcbaAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlW352zspQr7pAlyvi0BnCozqfclvsSsEl5RtBILKSuQIgQytbb6m67euFgRbyxBBCAw0EK4hBD6zsEuqjctRQ2vs="}]},"scripts":{}},"0.2.13":{"name":"nodemock","version":"0.2.13","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_npmJsonOpts":{"file":"/home/arunoda/.npm/nodemock/0.2.13/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"nodemock@0.2.13","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.18","_nodeVersion":"v0.4.5","_defaultsLoaded":true,"dist":{"shasum":"4bc1f2fdf620ef128b3091899575ac12cd54fe6a","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.13.tgz","integrity":"sha512-0IcDXHKKCYA/Ibgn8IJDzzxq1IOp0YImnlwDDQgOJh+OVQy1njOzwlGEM1nyE4deejpNT0c0hQAH2AVCqFL8TQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHNb5N/E5xxrQjmr4xRY/9cvK0UAWufZC3zMkSJL7xJwIgGBfaboq7M8QBq5/0jMyfNfed66N1MUYXDkozCjBsEGY="}]},"scripts":{},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"0.2.14":{"name":"nodemock","version":"0.2.14","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_npmJsonOpts":{"file":"/home/arunoda/.npm/nodemock/0.2.14/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"nodemock@0.2.14","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.18","_nodeVersion":"v0.4.5","_defaultsLoaded":true,"dist":{"shasum":"ba327f4b6835093ebe3bf1d00b80e79fe832a618","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.14.tgz","integrity":"sha512-54TF9v5Usa9iSWi7ooUpExTnKXU5PAliHABKvzKXXIdg6RJMpk7cL51ONgDWQDLbWtTPx83wU9jogattjymkFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbRT0gJIIeOTPZXdEN54MVgeOHl8TjuOoilvLoRXn6/gIhAOQzkdB26EkyJDhaz6YmEUKozN1XaLUhZds6HFdlogAd"}]},"scripts":{},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"0.2.15":{"name":"nodemock","version":"0.2.15","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"_npmJsonOpts":{"file":"/home/arunoda/.npm/nodemock/0.2.15/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"nodemock@0.2.15","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.18","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"107e2cade896645e3cb7c95be76da8931b5a45f6","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.15.tgz","integrity":"sha512-M2fYgqUxJSYnED2tnvtT77kipwn1Nc3p7iAVFdpO93irM+2EgtxTFDLf5js9nEUmueh9XF9rm3oslxQ6H7GayQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQv75voldoHR6QMob/S0QIXIY2NT0Fix+tRU8fM/qdngIgX2YpQaaLAw5f7uYB41a4fHVFw8xvdy6KysMNGKE2+60="}]},"scripts":{},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"0.2.16":{"name":"nodemock","version":"0.2.16","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"tags":["mock","unit","testing","nodemock"],"_npmJsonOpts":{"file":"/home/arunoda/.npm/nodemock/0.2.16/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"nodemock@0.2.16","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.18","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"bcd347cfd06f04d517b563d708356f6fd783923f","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.16.tgz","integrity":"sha512-THAIKqTD6DZrHUQw9uBOyafZ3Zt0BAxnR+KONM/RBYhWMu/mbFlMMQSmC78Hcx0hm1YaZMA7MkL5HSwgy0/IxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDINMQPe1/u7XbW9RCQC9r3v4yUDdxLjEdhzZQOwjPbeAiBTFm6FzIyoKpXU9daj1oDrrQmJaYYNNp0qUahJ+CSftQ=="}]},"scripts":{},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"0.2.17":{"name":"nodemock","version":"0.2.17","directories":{"lib":"./lib"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"https://github.com/arunoda/nodemock","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git@github.com:arunoda/nodemock.git"},"tags":["mock","unit","testing","nodemock"],"_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"_id":"nodemock@0.2.17","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"2d3873acc94eeeaf9fdef31e76b8c3ef11dfeebc","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.2.17.tgz","integrity":"sha512-ZSGgKYihOB5mYCirpO3DYCUYO5T729KbtZh8Bqf5aZHYOXPWPjxDQ4x8mwpZaLFuvPqSQbbqLO5ApF5voMkYNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCg73ORSccct1xV+pvOoSnj+dqgDY+Jt76dFRXhO89tbQIhALtW3A9DfOPdthkBmy1i7eYKbk92aHfRqs8JWe+A4PlM"}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"0.3.0":{"name":"nodemock","version":"0.3.0","directories":{"test":"test"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"http://curtis.schlak.com/nodemock/","contributors":[{"name":"Curtis Schlak","email":"realistschuckle@gmail.com"},{"name":"Oscar Renalias","email":"oscar@renalias.net"}],"scripts":{"test":"grunt test"},"licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"grunt":"~0.4.1","grunt-contrib-jshint":"~0.3.0","grunt-contrib-nodeunit":"~0.1.2","nodeunit":"= 0.7.4"},"repository":{"type":"git","url":"git@github.com:realistschuckle/nodemock.git"},"tags":["mock","unit","testing","nodemock","mockingbird"],"bugs":{"url":"https://github.com/realistschuckle/nodemock/issues"},"dependencies":{"grunt":"~0.4.2","grunt-contrib-jshint":"~0.3.0","grunt-contrib-nodeunit":"~0.1.2","nodeunit":"~0.7.4"},"keywords":["mock","unit","testing","nodemock","mockingbird"],"license":"MIT-License","_id":"nodemock@0.3.0","dist":{"shasum":"3412472e9fb5b9bc89dd6e9836dcfc90510e6c95","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.3.0.tgz","integrity":"sha512-gOFAl3TbUUv96qRoEOBGrXcMSn8OcZrn8nzHBBmHQYB1e2TcaJK4gZyxed5sUc/gjWm8XZM4l+E6E4lJ+S11tg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1aAH9rRbYL/Vsq/5AenvkVksWxvqyggzgcnTaqDVNuQIgXHHAEPLgfnjuIOxJBiXHx6yz65gC8MStSrjiZkl7VMY="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"realistschuckle","email":"realistschuckle@gmail.com"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},{"name":"realistschuckle","email":"realistschuckle@gmail.com"}]},"0.3.1":{"name":"nodemock","version":"0.3.1","directories":{"test":"test"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"http://curtis.schlak.com/nodemock/","contributors":[{"name":"Curtis Schlak","email":"realistschuckle@gmail.com"},{"name":"Oscar Renalias","email":"oscar@renalias.net"}],"scripts":{"test":"grunt test"},"licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"grunt":"~0.4.2","grunt-contrib-jshint":"~0.3.0","grunt-contrib-nodeunit":"~0.1.2","nodeunit":"~0.7.4"},"repository":{"type":"git","url":"git@github.com:realistschuckle/nodemock.git"},"tags":["mock","unit","testing","nodemock","mockingbird"],"bugs":{"url":"https://github.com/realistschuckle/nodemock/issues"},"keywords":["mock","unit","testing","nodemock","mockingbird"],"license":"MIT-License","_id":"nodemock@0.3.1","dist":{"shasum":"6806677d3b0792b9810a04e835861c3f3a4ea59c","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.3.1.tgz","integrity":"sha512-ntiotATsZGSfBK3r3fnmj64cqnKbyphoEYLFeFEtxHWThVAJflm0AN4bYN99cZackpwZiTaynezT2ebxlZ3Hzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGHTZXn0+OxW+f3TB908alqnevjXkU08xude51pMR5lQAiEA3HbiGsTSJGmVOA1gos7WRGud0sFZEsz88U9Ps0c8onE="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"realistschuckle","email":"realistschuckle@gmail.com"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},{"name":"realistschuckle","email":"realistschuckle@gmail.com"}]},"0.3.2":{"name":"nodemock","version":"0.3.2","directories":{"test":"test"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"http://curtis.schlak.com/nodemock/","contributors":[{"name":"Curtis Schlak","email":"realistschuckle@gmail.com"},{"name":"Oscar Renalias","email":"oscar@renalias.net"}],"scripts":{"test":"grunt test"},"licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"grunt":"~0.4.2","grunt-contrib-jshint":"~0.3.0","grunt-contrib-nodeunit":"~0.1.2","nodeunit":"~0.7.4"},"repository":{"type":"git","url":"git@github.com:realistschuckle/nodemock.git"},"tags":["mock","unit","testing","nodemock","mockingbird"],"bugs":{"url":"https://github.com/realistschuckle/nodemock/issues"},"keywords":["mock","unit","testing","nodemock","mockingbird"],"license":"MIT-License","_id":"nodemock@0.3.2","dist":{"shasum":"4102f3f53c49ea16883a0209cfb5f47060a33bc4","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.3.2.tgz","integrity":"sha512-tN2lIFA0gcKJDE5VZhckYJ+0BkFQSAd3wssY261Z7F752WXL0k7P2u+4JKcRoJd/lFzJ76Pilq485CHx1tB/3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnLUXr/TKFzQsHSDhz8D+xZgwae5yrWicXON911mXI7AiEA/mJGzF0V5Xlb7134UTilJB7raf2K7ZmPetpkuMH42ao="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"realistschuckle","email":"realistschuckle@gmail.com"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},{"name":"realistschuckle","email":"realistschuckle@gmail.com"}]},"0.3.3":{"name":"nodemock","version":"0.3.3","directories":{"test":"test"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"http://curtis.schlak.com/nodemock/","contributors":[{"name":"Curtis Schlak","email":"realistschuckle@gmail.com"},{"name":"Oscar Renalias","email":"oscar@renalias.net"}],"scripts":{"test":"grunt test"},"licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"grunt":"~0.4.2","grunt-contrib-jshint":"~0.3.0","grunt-contrib-nodeunit":"~0.1.2","nodeunit":"~0.7.4"},"repository":{"type":"git","url":"git@github.com:realistschuckle/nodemock.git"},"tags":["mock","unit","testing","nodemock","mockingbird"],"bugs":{"url":"https://github.com/realistschuckle/nodemock/issues"},"keywords":["mock","unit","testing","nodemock","mockingbird"],"license":"MIT-License","_id":"nodemock@0.3.3","dist":{"shasum":"e8bbd9e570ab21dd13f6cd9f24b4ad5c89883792","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.3.3.tgz","integrity":"sha512-kNcYpGMyUOWHaoNaaY0PQMiCgPcoPMbaMK5+ihIJb8eq28Fr6fU8RLHqH7Lo2Xg4Ad/wS0pmn+/gHZwuQGUZsg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3QRLPRs5uyKd1uo4PA5Is+W7vIbbOnVSVRiSDSiOBGgIhAKg256133aglCBgi1iddntuEzQBvMjVcBCXV50YwDgHJ"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"realistschuckle","email":"realistschuckle@gmail.com"},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},{"name":"realistschuckle","email":"realistschuckle@gmail.com"}]},"0.3.4":{"name":"nodemock","version":"0.3.4","directories":{"test":"test"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Arunoda Susiripala","email":"arunoda.susiripala@gmail.com"},"homepage":"http://curtis.schlak.com/nodemock/","contributors":[{"name":"Curtis Schlak","email":"realistschuckle@gmail.com"},{"name":"Oscar Renalias","email":"oscar@renalias.net"},{"name":"Aaron Fay","email":"aaron.j.fay@gmail.com"},{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com"},{"name":"Daniel @0xDB"},{"name":"Gabriel Falcão","email":"gabriel@nacaolivre.org"}],"scripts":{"test":"grunt test"},"licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"grunt":"~0.4.2","grunt-contrib-jshint":"~0.3.0","grunt-contrib-nodeunit":"~0.1.2","nodeunit":"~0.7.4"},"repository":{"type":"git","url":"git@github.com:realistschuckle/nodemock.git"},"tags":["mock","unit","testing","nodemock","mockingbird"],"bugs":{"url":"https://github.com/realistschuckle/nodemock/issues"},"keywords":["mock","unit","testing","nodemock","mockingbird"],"license":"MIT-License","_id":"nodemock@0.3.4","dist":{"shasum":"d895db84c03729116edf5adb7f788b9f60c21733","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.3.4.tgz","integrity":"sha512-I9UhQnsCPVQiXFgyRseEyJwZOFl2oHebDYX0nmMSYfw7l3LLUu6CYzf2GJfarCR1ez/ukRKZEDJNopw4r2nsuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGGyWZlGbEeMw9meaC++UzlZ+C60QiUN7ml0dDHxeCnJAiAn8sTzckADn2YT+hm4LGbsPSYw9M0rcI0mp+xDqjFWZQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"realistschuckle","email":"realistschuckle@gmail.com"},"maintainers":[{"name":"realistschuckle","email":"realistschuckle@gmail.com"}]},"0.3.5":{"name":"nodemock","version":"0.3.5","directories":{"test":"test"},"main":"./lib/nodemock","description":"Simple Yet Powerful Mocking Framework for NodeJs","author":{"name":"Curtis Schlak","email":"realistschuckle@gmail.com"},"homepage":"http://curtis.schlak.com/nodemock/","contributors":[{"name":"Oscar Renalias","email":"oscar@renalias.net"},{"name":"Aaron Fay","email":"aaron.j.fay@gmail.com"},{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com"},{"name":"Daniel @0xDB"},{"name":"Gabriel Falcão","email":"gabriel@nacaolivre.org"}],"scripts":{"test":"grunt test"},"licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.3","grunt-contrib-nodeunit":"^0.4.1","nodeunit":"^0.9.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/realistschuckle/nodemock.git"},"tags":["mock","unit","testing","nodemock","mockingbird"],"bugs":{"url":"https://github.com/realistschuckle/nodemock/issues"},"keywords":["mock","unit","testing","nodemock","mockingbird"],"license":"MIT","gitHead":"ceac4379a582f173d1488b6c0a1eec33ab6008b6","_id":"nodemock@0.3.5","_shasum":"603d486ab7f5edfbca60090b439a1e0fd04aec70","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"realistschuckle","email":"realistschuckle@gmail.com"},"dist":{"shasum":"603d486ab7f5edfbca60090b439a1e0fd04aec70","tarball":"https://registry.npmjs.org/nodemock/-/nodemock-0.3.5.tgz","integrity":"sha512-fQLrZoeEDILdrS2/AY3TMoQpdjeYhw68T0kKWv7l8St0dHVgn/hv99v0SE5RQE2uym1OOjrA94m+9V+maQb8qQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGX9Btg7GFdKqwEOnlLO7kHID09A21/91TXjV85IoTfvAiBdQA5iDJrLnOedIOXmKUkcjmzC7SJIOap90bd9SFNgfg=="}]},"maintainers":[{"name":"realistschuckle","email":"realistschuckle@gmail.com"}]}},"maintainers":[{"name":"realistschuckle","email":"realistschuckle@gmail.com"}],"time":{"modified":"2022-06-22T03:09:34.604Z","created":"2011-03-15T14:41:08.957Z","0.1.0beta":"2011-03-15T14:41:10.742Z","0.2.0beta":"2011-03-15T19:27:09.292Z","0.2.1beta":"2011-04-03T01:55:07.396Z","0.2.2beta":"2011-04-04T05:41:47.928Z","0.2.3beta":"2011-04-05T02:51:48.835Z","0.2.4beta":"2011-04-05T03:44:17.440Z","0.2.5beta":"2011-04-05T14:41:15.122Z","0.2.6beta":"2011-04-05T18:40:13.768Z","0.2.7beta":"2011-04-07T02:59:53.695Z","0.2.8beta":"2011-05-08T04:39:07.187Z","0.2.9beta":"2011-06-13T15:57:05.143Z","0.2.10beta":"2011-06-25T04:27:05.097Z","0.2.11beta":"2011-07-13T03:51:29.885Z","0.2.12":"2011-07-13T16:49:52.683Z","0.2.13":"2011-08-06T14:47:41.860Z","0.2.14":"2011-08-13T20:26:01.532Z","0.2.15":"2011-10-01T12:32:54.271Z","0.2.16":"2011-10-15T11:45:53.320Z","0.2.17":"2012-04-11T13:41:45.496Z","0.3.0":"2014-01-29T07:47:44.149Z","0.3.1":"2014-01-29T07:53:38.966Z","0.3.2":"2014-01-29T08:37:49.718Z","0.3.3":"2014-01-29T09:11:23.220Z","0.3.4":"2014-05-04T00:56:15.652Z","0.3.5":"2015-09-16T01:12:30.195Z"},"author":{"name":"Curtis Schlak","email":"realistschuckle@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/realistschuckle/nodemock.git"},"readme":"A simple Yet Powerful Mocking Framework for NodeJs\n==================================================\n\n[NodeMock](https://github.com/realistschuckle/nodemock) is a Simple, Yet\nPowerful Mocking Framework for NodeJs\n\nNodeMock is a very simple to use mocking framework which can be used to  mock\nfunctions in JavaScript objects. NodeMock creates mock methods in less code\nwith more expressive manner.\n\nFeatures\n--------\nBesides it's simplicity it supports following features:\n\n* Does not need an existing object to create the mock\n* Verify arguments (we check deeply on objects and arrays to check the validity)\n* Allow a return to be sent\n* Assertion to check whether all the rules executed\n* Callbacks can also be executed with providing arguments\n* Multiple mock functions in one object\n* Alter a mock function later on\n* Method chaining allows creating mocks super easy\n* Fail support added when calling method that should not be called\n* Mock support to call a single method more than once\n* Repetitive support\n* Ignore methods from mocking behaviour\n* Ability to provide functions to determine valid input for mocked functions\n* Ability to provide functions to generate output from mocked functions\n  \nTesting\n-------\nNode JS can be used with any testing framework. And we've used it with Nodeunit\nand it's a perfect match.\n[See Examples](https://github.com/realistschuckle/nodemock/blob/master/test/nodemock.js \"Nodemock with Nodeunit\")\n\nInstall\n---------\n```\nnpm install nodemock\n```\n\nUsage\n------\n\n### Load the Module\n    var nodemock = require(\"nodemock\");\n\n### Name a mock for clarity\n    var mocks = [\n          nodemock.named('mock1').mock('foo').takes(1),\n          nodemock.named('mock2').mock('foo').takes(1)\n        ],\n        i;\n\n    for(i = 0; i < mocks.length; i += 1) {\n      mocks[i].assert(); // Prints that «mockName».foo(1) was not called.\n    }\n\n### Creating a mock function with taking arguments and return value\n    var mocked = nodemock.mock(\"foo\").takes(10, [10, 20, 30]).returns(98);\n    \n    mocked.foo(10, [10, 20, 30]); // this will return 98\n    \n    mocked.foo(10); //throws execption\n  \n### Creating a mock with callback support\n    var mocked = nodemock.mock(\"foo\")\n                         .takes(20, function(){})\n                         .calls(1, [30, 40]);\n    \n    mocked.foo(20, function(num, arr) {\n      console.log(num); //prints 30\n      console.log(arr); //prints 40\n    });\n    \n    /*\n      When you invoke foo() nodemock will calls the callback(sits in argument\n      index 1 - as specified) with the parameters 30 and 40 respectively. \n    */\n\n  \n### Creating a mock function that takes variable parameters\n\n    var mocked = nodemock.mock(\"foo\").takes(function(args) {\n      return(args % 2 == 0) \n    });\n    mocked.foo(4) // works\n\n    mocked.foo(5) // fails\n\n### Creating a mock function that takes variable parameters and returns dynamic values\n\n    var mocked = nodemock.mock(\"foo\").takesF(function(args) {\n      return(args % 2 == 0) \n    }).returnsF(function(args) {\n      return(args * 2)\n    });\n    mocked.foo(4) // returns 8\n\n    mocked.foo(5) // fails\n\n### Creating a mock with callback support\n\n    var mocked = nodemock.mock(\"foo\")\n                         .takes(20, function(){})\n                         .calls(1, [30, 40]);\n\n    mocked.foo(20, function(num, arr) {\n      console.log(num); //prints 30\n      console.log(arr); //prints 40\n    });\n\n    /*\n      When you invoke foo() nodemock will calls the callback (sits in argument\n      index 1 - as specified) with the parameters 30 and 40 respectively. \n    */\n\n### Controlling callbacks\n\nWith the asynchronous nature of NodeJS(and brower with AJAX too) it'll be great\nif we can control the execution of the callback in the testing environment. And\n`ctrl()` of nodemock helps that\n\n    var ctrl = {};\n    var mocked = nodemock.mock('foo').takes(10, function() {}).ctrl(1, ctrl);\n    //where ever in your codebase\n    ctrl.trigger(10, 20); // you can call this as many as you want\n  \n### Add multiple mock functions\n    var mocked = nodemock.mock(\"foo\").takes(10).returns(30);\n    mocked.foo(10); //gives 30\n    \n    mocked.mock(\"bar\").takes(true).returns(40);\n    mocked.bar(true); // gives 40\n\n  \n### Assertion Support\n    var mocked = nodemock.mock(\"foo\").takes(20);\n    var mocked = nodemock.mock(\"bar\").takes(40);\n    \n    mocked.foo(20);\n    mocked.bar(40);\n    \n    //check whether what we've defined is actually executed\n    mocked.assert(); //returns true\n  \n### Fails when calls any method in the mock object\n    var mocked = nodemock.fail();\n    mocked.foo(); //throws an exception\n    mocked.bar(); //throws an exception\n  \n### Fails when calls some particular method in the mock object\n    var mocked = nodemock.mock(\"foo\").fail();\n    mocked.mock(\"bar\").takes(10);\n    mocked.foo(); //throws an exception\n    mocked.bar(10); //works perfectly\n  \n### calls a single mocked method, multiple times\n  \n    var mocked = nodemock.mock(\"foo\").takes(10, 20).times(2);\n    \n    mocked.foo(10, 20);\n    mocked.foo(10, 20);\n\n### calls a single mocked method, multiple times with different returns\n  \n    var mocked = nodemock.mock(\"foo\").takes(10, 20).returns(100);\n    mocked.mock('foo').takes(10, 20).returns(200);\n\n    mocked.foo(10, 20); //returns 100\n    mocked.foo(10, 20); //returns 200\n  \n### mock a single method more than once\n    var mocked = nodemock.mock(\"foo\").takes(10, 20);\n    mocked.mock(\"foo\").takes(20, 30);\n    mocked.mock(\"foo\").takes(500);\n    \n    mocked.foo(10, 20);\n    mocked.foo(20, 30)\n    mocked.foo(500);\n    \n    //check whether everything has done\n    mocked.assert(); //returns true\n\n### reset the mock\n  \n    var mocked = nodemock.mock('foo').returns(100);\n    mocked.foo(); //returns 100\n    mocked.assert(); //returns true\n      \n    mocked.reset();\n    \n    mocked.mock('doo').returns(300);\n    mocked.doo(); //returns 300\n    mock.assert() //returns true\n\n### ignore method\nSometime we need to ignore some methods going through mocking rules. But we\nneed to have those methods but doing nothing.\n\n    var mocked = nodemock.ignore('hello');\n    mocked.mock('foo').returns(100);\n\n    mock.foo(); //returns 100\n    mock.hello(); //do nothing but the method exists\n\n    mock.assert(); // return true, assert ignores ignored methods\n\nAPI Documentation\n-----------------\n\n### Construction ###\n\n    var mocked = require('nodemock').mock('foo');\n      Creating a object with mock function \"foo\"\n    \n    mocked.mock(methodName)\n      Used to alter or create a new mock method and add rules to it as usual\n      \n### Rules ###\n\n    mocked.takes(arg1, args2, ...)\n      Specify arguments of the function and verify then when calling\n\n    mocked.takesF(function)\n      As opposed to takes(), in which we can only specify static values,\n      takesF() (note the \"F\" in the name to indicate that it takes a function)\n      allows client code to provide a predicate that determines whether the\n      mocked function should accept (\"take\") the value and allowing mock code\n      to be a bit more dynamic.\n\n    mocked.takesAll()\n      A shorthand function that tells the mock function to accept any input.\n      \n    mocked.returns(returnValue)\n      Specify the return value of the function\n\n    mocked.returnsF(function)\n      Similar to takesF(), returnsF() allows to provide a function that will\n      dynamically generate values that will be returned from mock calls. The\n      function will be provided with the parameters that were passed to the\n      mock call.\n\n    mocked.calls(callbackPosition, argumentsArray)     \n      Calls a callback at the arguments in index `callbackPosition`\n      with the arguments specified in the \"argumentsArray\"\n      \n      when using this you've to define a function signature as a callback in\n      the argument list for a callback at index 2 .takes() function will be as,\n      mocked.takes(10, 20, function(){})\n  \n    \n    mocked.fail()\n      If calls at very begining afterword any call on the mocked objects will\n      fail. Otherwise current mock method will fails someone called that. \n      \n    mocked.times(repetitiveCount);\n      We can rule the mocked method to be called multiple times with same\n      parameters. Finally we can check that using above assert method;\n\n    mocked.reset()\n      Reset all the rules and mocks created. And bring mocked object into a\n      stage when it's created\n\n    mocked.ignore()\n      Ignore Some methods from the mocking behaviour\n  \n### Confirm ###\n\n    mocked.assert();\n      Checks whether rules we've defined using other methods were executed.\n      If all the rules were executed return true, otherwise false\n\n    mocked.assertThrows();\n      Same as the mocked.assert() but throws an execption if rules breaks.\n\n## Copyright\n\nCopyright (c) 2011 Arunoda Susiripala\n\n[Modifications from the `mockingbird` fork](https://github.com/realistschuckle/nodemock/commit/4943c7ea5597cecab09289ca55d3aff88524cbc5),\nCopyright (c) 2013 Oscar Renalias\n\nRemaining copyrights owned by individual contributors.\n","readmeFilename":"README.md","homepage":"http://curtis.schlak.com/nodemock/","keywords":["mock","unit","testing","nodemock","mockingbird"],"contributors":[{"name":"Oscar Renalias","email":"oscar@renalias.net"},{"name":"Aaron Fay","email":"aaron.j.fay@gmail.com"},{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com"},{"name":"Daniel @0xDB"},{"name":"Gabriel Falcão","email":"gabriel@nacaolivre.org"}],"bugs":{"url":"https://github.com/realistschuckle/nodemock/issues"},"license":"MIT","users":{"diniduddd":true}}