{"_id":"mocha-mongoose","_rev":"42-e74dc40546004201225c7468fbc3ac79","name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","dist-tags":{"latest":"1.2.0"},"versions":{"0.0.1":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mocha with mongoose","version":"0.0.1","repository":{"url":"https://github.com/elliotf/mocha-mongoose"},"scripts":{"test":"make test"},"dependencies":{"mongoose":"*","mocha":"*"},"devDependencies":{"should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"elliotf","email":"efoster+opensource@firetaco.com"},"_id":"mocha-mongoose@0.0.1","_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"a631206c4c8fcf36b1af0b6551765dcfbc7e58bc","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-0.0.1.tgz","integrity":"sha512-NhswK8fppG6WLR6Y047FmvzSB2fXINLEtEBzziioF47U/m5wWc97BtpAL7ZzL/x1+ZfyhB7MgTvAG51fqiu+/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQe/e5+2ku75bSSQjJctUyfUIZfeT4WgGbt4QammcwOgIhAPaoHhV3EyDxGUidBeW9EKrrplN/FZeV9dsOgo6XhMyN"}]},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"directories":{}},"0.0.3":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mocha with mongoose","version":"0.0.3","repository":{"url":"https://github.com/elliotf/mocha-mongoose"},"scripts":{"test":"make test"},"dependencies":{"mongodb":"*"},"devDependencies":{"should":">= 0.0.1","mongoose":"*","mocha":"*"},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"elliotf","email":"efoster+opensource@firetaco.com"},"_id":"mocha-mongoose@0.0.3","_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"72618c55033e44df1d72fdfa3f5040fc9ba134e9","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-0.0.3.tgz","integrity":"sha512-/Dj2MnyrRVS69p93u/a8Q6Cg0rcdQo9AlWffmm6bp0lkbESiGgGBh9w5eKGYa1xnVyUzrXNzLgNAPcOjbZZvtQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBmom35TT/mxvwmZy2xJB/reDxE5mJe/ZJzxHOeMrvEVAiEAjKt47kYTM3X7R16WmiV7tLkRA5ujRyh7gCKXchiNjA4="}]},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"directories":{}},"0.0.4":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"0.0.4","repository":{"url":"https://github.com/elliotf/mocha-mongoose"},"scripts":{"test":"make test"},"dependencies":{"mongodb":"*"},"devDependencies":{"mongoose":"*","mocha":"*","nodemon":"~0.6.23","chai":"~1.2.0","async":"~0.1.22"},"optionalDependencies":{},"engines":{"node":"*"},"_id":"mocha-mongoose@0.0.4","dist":{"shasum":"61bda2fea6f1c209c7c3a38aa6aef834555420d8","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-0.0.4.tgz","integrity":"sha512-ZDJulXteAIR8ADbFf5Zjrx5G/otI6fTEBbYnk92Gwg0BdS36ETNSlZelX4vvaF+lGX8yYM7zsgK3zctVuxnAiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCqc9gXX9riRcA9aJ95dVNj+ZsIUcRC2HUdSeljX3mOwIgLdZR39tRVFofVERB51Uw22P2fjGMIH+ZdaWWjol65E0="}]},"_npmVersion":"1.1.63","_npmUser":{"name":"elliotf","email":"efoster+opensource@firetaco.com"},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"directories":{}},"0.1.0":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"0.1.0","repository":{"url":"https://github.com/elliotf/mocha-mongoose"},"scripts":{"test":"make test"},"dependencies":{"mongodb":"*"},"devDependencies":{"mongoose":"*","mocha":"*","nodemon":"~0.6.23","chai":"~1.2.0","async":"~0.1.22"},"optionalDependencies":{},"engines":{"node":"*"},"_id":"mocha-mongoose@0.1.0","dist":{"shasum":"de76337b950e3099b5f8738562d74df3a395eac8","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-0.1.0.tgz","integrity":"sha512-yOWLLTYtOxwmt2nE9stOliPAyr0+e90/WHM0NfyPN2RdPCKrUXt2tYnfDLocVVxvKw4xmZTXA4bExNIecp+V6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHaSSkqBp18Lacmd+h3tkl14ZK0OgHDoc3U5bDh5W32yAiEAwrgHIdoDyzW+3OkQn7kj0TxFAzwhXHkyUEDdJ5rwJv0="}]},"_npmVersion":"1.1.63","_npmUser":{"name":"elliotf","email":"efoster+opensource@firetaco.com"},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"directories":{}},"0.1.1":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"0.1.1","repository":{"url":"https://github.com/elliotf/mocha-mongoose"},"scripts":{"test":"make test"},"dependencies":{"mongodb":"*"},"devDependencies":{"mongoose":"*","mocha":"*","nodemon":"~0.6.23","chai":"~1.2.0"},"optionalDependencies":{},"engines":{"node":"*"},"_id":"mocha-mongoose@0.1.1","dist":{"shasum":"51056bb3e8b1018a73d3495f82b4022f9a9b9106","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-0.1.1.tgz","integrity":"sha512-EQgoFt+Hpw2LtgEVvzwQdEk8P1FXXmDi0lr/0sXoxDQ/9oMG7uD0DO06b7f0b1Ts6tmTNZKDVeE59IiQSbTnkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCj7Smzh/WIYGOb1Zk8Sns7SKgKqg6UcjWRIJA1lvoMewIgP+20rGutG9QvY5LMd5D6zj3YnF1OSoeE3OQ55w8Js2I="}]},"_from":".","_npmVersion":"1.2.12","_npmUser":{"name":"elliotf","email":"efoster@firetaco.com"},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"directories":{}},"0.1.2":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"0.1.2","repository":{"url":"https://github.com/elliotf/mocha-mongoose"},"scripts":{"test":"make test"},"dependencies":{"mongodb":">= 1.2"},"devDependencies":{"mongoose":"*","mocha":"*","nodemon":"~0.6.23","chai":"~1.2.0"},"optionalDependencies":{},"engines":{"node":"*"},"_id":"mocha-mongoose@0.1.2","dist":{"shasum":"f6d61c2bd0d4b09ec7fd2d581bd3dbe6938ef7ff","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-0.1.2.tgz","integrity":"sha512-SudnvbQF2z+UHavq19lr6dyTp9iU2+RZGbEO8knQ7O/piZdE/Lr+RDm5iL+i7Yx+jgKtalydWn7N7/7rupU2CQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6+SsJqZ5HL9s0J4r7ykD7W7wr8sOuipOAQUeYjTry9AiBC66l+2cyMizOoD+WRdS8CsWSJPU68jCgZQ2JdIkb57g=="}]},"_from":".","_npmVersion":"1.2.12","_npmUser":{"name":"elliotf","email":"efoster@firetaco.com"},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"directories":{}},"0.1.4":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"0.1.4","repository":{"url":"https://github.com/elliotf/mocha-mongoose"},"scripts":{"test":"make test"},"dependencies":{"mongodb":">= 1.2"},"devDependencies":{"mongoose":"*","mocha":"*","nodemon":"~0.6.23","chai":"~1.2.0"},"optionalDependencies":{},"engines":{"node":"*"},"_id":"mocha-mongoose@0.1.4","dist":{"shasum":"d811930ab3b195603ab9edb1cee048c8bccb79dc","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-0.1.4.tgz","integrity":"sha512-Zxk7t/kIOqXE56J8l1HGMGnVq9F8oMX13mhq7CjdBVa4cTOirjqN5NowAkM2iJcAcyglybIynL+yk308+srVfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDAhr9zgcCX+bQ5U9vAbjFJQVVfoFdLZXxvbEiNRw3EVAiEAiXiFXe3xdWjXq++l6O+S8x1hzJJ4RChpb/elD+3DmMA="}]},"_from":".","_npmVersion":"1.2.12","_npmUser":{"name":"elliotf","email":"efoster@firetaco.com"},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"directories":{}},"0.1.5":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"0.1.5","repository":{"url":"https://github.com/elliotf/mocha-mongoose"},"scripts":{"test":"make test"},"dependencies":{"mongodb":">= 1.2"},"devDependencies":{"mongoose":"*","mocha":"*","nodemon":"~0.6.23","chai":"~1.2.0"},"optionalDependencies":{},"engines":{"node":"*"},"_id":"mocha-mongoose@0.1.5","dist":{"shasum":"02816601700a329db15543fe113753f8e7a2bdc6","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-0.1.5.tgz","integrity":"sha512-m34EI1BPdMZVy/QpC431EKAcv5b35Ou6/2qs4YosS36inNRRBTM8s1mGrc+ZFJYzPK7Lr55JVAb5SXq/R3vRNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBgA9c2uoxrcOWwb8sRMWqKROi35lYMmjEe3i1ZVz8BmAiEAtl06gqCkWQc2GYzqFMw0TlKTXFtf014PdctEZyck8ig="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"elliotf","email":"efoster@firetaco.com"},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"directories":{}},"1.0.0":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"1.0.0","repository":{"url":"https://github.com/elliotf/mocha-mongoose"},"scripts":{"test":"make test"},"peerDependencies":{"mongodb":"~1","mocha":"~1"},"devDependencies":{"mocha":"~1","mongodb":"~1","mongoose":"~3","nodemon":"~0","chai":"~1"},"optionalDependencies":{},"engines":{"node":"*","npm":">= 1.2"},"bugs":{"url":"https://github.com/elliotf/mocha-mongoose/issues"},"homepage":"https://github.com/elliotf/mocha-mongoose","dependencies":{},"_id":"mocha-mongoose@1.0.0","dist":{"shasum":"2019a06320d272f4b2c107690fb195c09a9856ae","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-1.0.0.tgz","integrity":"sha512-sS/r8ElncFhnRcV+ZmWJ+cvfdTzYl7RIqoQdBa8TmpmjZqenznLph6M3kosUv5Pbx87bv5br2o2mnmGR+sC+dg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHH6PJj462ZNBJ/M6g5+1j+8n7N/zsQ/9R8FC8UhCw0YAiEAmyVqLKH0PO4QW35n+T1K4jdMP+oGdY8yuFvQe3Bp7BY="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"elliotf","email":"efoster@firetaco.com"},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"directories":{}},"1.0.1":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"1.0.1","repository":{"type":"git","url":"https://github.com/elliotf/mocha-mongoose"},"scripts":{"test":"make test"},"peerDependencies":{"mongodb":"~1","mocha":"~1"},"devDependencies":{"mocha":"~1","mongodb":"~1","mongoose":"~3","nodemon":"~0","chai":"~1"},"optionalDependencies":{},"engines":{"node":"*","npm":">= 1.2"},"bugs":{"url":"https://github.com/elliotf/mocha-mongoose/issues"},"homepage":"https://github.com/elliotf/mocha-mongoose","dependencies":{},"_id":"mocha-mongoose@1.0.1","dist":{"shasum":"2eef9807de5017315c67b91e10a29ed253ed6bad","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-1.0.1.tgz","integrity":"sha512-4aXPIKi/p6bwVb1s7vLqjXx3FSH7w4i78QFFrFPCu/wfIv5CagSZlxxGG/k5PVl+PCnPZ2owNT64lp6wzLT3cA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfWRHrlompHW2E01GmcEVw6HRSTE5K8OHm5DOngJDzsQIgGdeRuLfNG3ndo6Wk2JoO4BiLGjpgHgU0wR5oxsSlxQU="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"elliotf","email":"efoster@firetaco.com"},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"directories":{}},"1.0.2":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"1.0.2","repository":{"type":"git","url":"https://github.com/elliotf/mocha-mongoose"},"scripts":{"test":"make test"},"license":"MIT","peerDependencies":{"mongodb":"~1","mocha":"~1"},"devDependencies":{"mocha":"~1","mongodb":"~1","mongoose":"~3","nodemon":"~0","chai":"~1"},"optionalDependencies":{},"engines":{"node":"*","npm":">= 1.2"},"gitHead":"4684e224924429c13b92c7d559f84bfb9422c61d","bugs":{"url":"https://github.com/elliotf/mocha-mongoose/issues"},"homepage":"https://github.com/elliotf/mocha-mongoose","dependencies":{},"_id":"mocha-mongoose@1.0.2","_shasum":"d68744f15d2457cd000e0987f8118eb115ea8de4","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"elliotf","email":"efoster@firetaco.com"},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"dist":{"shasum":"d68744f15d2457cd000e0987f8118eb115ea8de4","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-1.0.2.tgz","integrity":"sha512-COchJC6VMctVlzvoQBJl/FIVIU/a6SfG3hMKEfT1Z6wQfKT/cKWb5sMvaQsGVdPVMPohzX0/Ipe+WSsFlXUFaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFnU6FVCHxTdinGpBpaTtyDG3V+XvM/s44wwyI4VXiXnAiEAnuet8HM6sxnF825DJNOyEnAszOhn+Z6VwC7adu/hsSI="}]},"directories":{}},"1.0.3":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"1.0.3","repository":{"type":"git","url":"https://github.com/elliotf/mocha-mongoose"},"scripts":{"test":"make test"},"license":"MIT","peerDependencies":{"mongodb":"~1","mocha":">=1.0.0"},"devDependencies":{"mocha":">= 1.0.0","mongodb":"~1","mongoose":"~3","nodemon":"~0","chai":"~1"},"optionalDependencies":{},"engines":{"node":"*","npm":">= 1.2"},"gitHead":"d6a603c6705f7578548c54222f92a7da696ced8b","bugs":{"url":"https://github.com/elliotf/mocha-mongoose/issues"},"homepage":"https://github.com/elliotf/mocha-mongoose","dependencies":{},"_id":"mocha-mongoose@1.0.3","_shasum":"e77d08a8e9f53b21cec3655b1c1396d2136417f8","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"elliotf","email":"efoster@firetaco.com"},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"dist":{"shasum":"e77d08a8e9f53b21cec3655b1c1396d2136417f8","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-1.0.3.tgz","integrity":"sha512-WAOgc1tvqH8THLtYuf32+21iMis4Z0BVRafKGKVauB08fYLxt7bwgTqijUFwaiQL4t7w+abaPFuvIF6yTZMl1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF2vpeEMrUvciNd4v+copk3cZmiLc14DyxbfLtNb3CmwAiEAi6c3KILVim3Wh2IaNORwQHXk+iaFwpdwDZoxPg0TEkY="}]},"directories":{}},"1.0.4":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"1.0.4","repository":{"type":"git","url":"https://github.com/elliotf/mocha-mongoose"},"scripts":{"test":"make test"},"license":"MIT","peerDependencies":{"mongodb":"~1","mocha":">=1.0.0"},"devDependencies":{"mocha":">= 1.0.0","mongodb":"~1","mongoose":"~3","nodemon":"~0","chai":"~1"},"optionalDependencies":{},"engines":{"node":"*","npm":">= 1.2"},"gitHead":"5142941749edf26bf9fb9866e9848ba446acd102","bugs":{"url":"https://github.com/elliotf/mocha-mongoose/issues"},"homepage":"https://github.com/elliotf/mocha-mongoose","dependencies":{},"_id":"mocha-mongoose@1.0.4","_shasum":"0abc183a8b80fac71298c359943d6d961d733038","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"elliotf","email":"efoster@firetaco.com"},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"dist":{"shasum":"0abc183a8b80fac71298c359943d6d961d733038","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-1.0.4.tgz","integrity":"sha512-tRkAF5WEnUTM4lhYUZ2Kf087OteMea2ZC+hbT7yW65/ina1w1i9P50xsXyVtqmBTaR21vDbItTM7QUz8iM4IMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEZNd+dnSUy64UgCRMTvzJTLeTEb9LPpD4/w15w5HKAdAiAM3c3D4CEAdnegIuldQ9RYa0dENkci1KemMghBK5QVxw=="}]},"directories":{}},"1.1.0":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"1.1.0","repository":{"type":"git","url":"git+https://github.com/elliotf/mocha-mongoose.git"},"scripts":{"test":"make test"},"license":"MIT","peerDependencies":{"mocha":">=1.0.0","mongodb":">=1.0.0"},"devDependencies":{"chai":">=1.0.0","mocha":">= 1.0.0","mongodb":">=1.0.0","mongoose":">=3.0.0","nodemon":"~0"},"optionalDependencies":{},"engines":{"node":"*","npm":">= 1.2"},"gitHead":"d0112d8362f29cc9008e34283edf13c18b7880fb","bugs":{"url":"https://github.com/elliotf/mocha-mongoose/issues"},"homepage":"https://github.com/elliotf/mocha-mongoose#readme","dependencies":{},"_id":"mocha-mongoose@1.1.0","_shasum":"029517f366eb9695c0be3401fe6b12824e2c6210","_from":".","_npmVersion":"2.13.5","_nodeVersion":"0.10.25","_npmUser":{"name":"elliotf","email":"efoster@firetaco.com"},"dist":{"shasum":"029517f366eb9695c0be3401fe6b12824e2c6210","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-1.1.0.tgz","integrity":"sha512-UoeCKNRIcZqIyfzsRn9bjpWfWphpa4WBdKKSb82RIq01+Vk7XFkZvWJX7k4P5EfFQnz7F6/17Wmf46+rM/JZmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEg/M+MW0sgJpAO7XjwZD9CCutjA4WnvQ6LgZPRqIqjZAiEAxvhJHcH/35KOYM4Kk83gTMvNyqskyRSy4oPLo4I9zcU="}]},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"directories":{}},"1.1.1":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"1.1.1","repository":{"type":"git","url":"git+https://github.com/elliotf/mocha-mongoose.git"},"scripts":{"test":"make test"},"license":"MIT","peerDependencies":{"mocha":">=1.0.0","mongodb":">=1.0.0"},"devDependencies":{"chai":">=1.0.0","mocha":">= 1.0.0","mongodb":">=1.0.0","mongoose":">=3.0.0","nodemon":"~0"},"optionalDependencies":{},"engines":{"node":"*","npm":">= 1.2"},"gitHead":"2039532169892df58de9e7669ba297e80f9bd346","bugs":{"url":"https://github.com/elliotf/mocha-mongoose/issues"},"homepage":"https://github.com/elliotf/mocha-mongoose#readme","dependencies":{},"_id":"mocha-mongoose@1.1.1","_shasum":"c2d62000f1312978e554bb8d0aeada97a33d2088","_from":".","_npmVersion":"3.4.1","_nodeVersion":"0.10.37","_npmUser":{"name":"elliotf","email":"efoster@firetaco.com"},"dist":{"shasum":"c2d62000f1312978e554bb8d0aeada97a33d2088","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-1.1.1.tgz","integrity":"sha512-Rd3K3OYh5/qLwPNbSj639Bg1NbqpxXyy/Lgg35oCeY5+lrPpd5UXUKygHsCnDeFYTayKTzR1z90FNDXT2GTJOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDncBKKb6DV0JD8fgCaM++uUzwixy0SJbsouXmh3UEZeQIgXf/eIdDfOPE9I4qmdJZlRNqWeO8uox3HhzWy4brSK1Y="}]},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"directories":{}},"1.2.0":{"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"name":"mocha-mongoose","description":"Test helpers for using mongodb with mocha","version":"1.2.0","repository":{"type":"git","url":"git+https://github.com/elliotf/mocha-mongoose.git"},"scripts":{"test":"make test"},"license":"MIT","peerDependencies":{"mocha":">=1.0.0","mongodb":">=1.0.0"},"devDependencies":{"chai":">=1.0.0","mocha":">= 1.0.0","mongodb":">=1.0.0","mongoose":">=3.0.0","nodemon":"~0"},"optionalDependencies":{},"engines":{"node":"*","npm":">= 1.2"},"gitHead":"2ac1a87f3d2a89088c4bcaa5506df0ec670c8c0c","bugs":{"url":"https://github.com/elliotf/mocha-mongoose/issues"},"homepage":"https://github.com/elliotf/mocha-mongoose#readme","dependencies":{},"_id":"mocha-mongoose@1.2.0","_shasum":"d07066262668864c304e348b1670bc52ba25cdf3","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"elliotf","email":"efoster@firetaco.com"},"dist":{"shasum":"d07066262668864c304e348b1670bc52ba25cdf3","tarball":"https://registry.npmjs.org/mocha-mongoose/-/mocha-mongoose-1.2.0.tgz","integrity":"sha512-mG2PcVupVNMlvvZPuL2gFAPo/qa4odnEa+O19Bf4LQU14ryBYl9y1AuDzVEnXwRrmQtwCRDO0xfY5RJGApk6Ig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQ6rfrRmK+uG+3FKK61mTHYm0U/JRs5PX6ijr9qYun7gIgZ7MOmFf2TZ/0vrHIjmLaEWLr2dolfVU/qXErL318gvc="}]},"maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mocha-mongoose-1.2.0.tgz_1458174968172_0.6734547594096512"},"directories":{}}},"readme":"mocha-mongoose\n==============\n\nTest helpers for using mongoose with mocha.\n\nSee the example spec (copied below) for more details.\n\n[![Travis-CI Build Status](https://secure.travis-ci.org/elliotf/mocha-mongoose.png)](http://travis-ci.org/elliotf/mocha-mongoose)\n[![Drone.io Build Status](https://drone.io/github.com/elliotf/mocha-mongoose/status.png)](https://drone.io/github.com/elliotf/mocha-mongoose/latest)\n\n## Installation\n\n1. install via npm\n\n    $ npm install mocha-mongoose\n\n1. require mocha-mongoose in your spec helper (easier) or in each spec file\n\n    require('mocha-mongoose')('mongodb://your-mongodb-url-here');\n\n1. mocha-mongoose will automatically clear all of your collections before each spec run\n1. optionally provide a `skip` option to tell mocha-mongoose not to clear specific collections.\n    require('mocha-mongoose')(dbURI, { skip: ['collectionname1', 'collectionname2'] });\n\n## Example usage of automatically clearing the DB between specs:\n\nThis is a copy of example/test.js\n\n```javascript\nvar dbURI    = 'mongodb://localhost/demo-app-clearing-db'\n  , should   = require('chai').should()\n  , mongoose = require('mongoose')\n  , Dummy    = mongoose.model('Dummy', new mongoose.Schema({a:Number}))\n  , clearDB  = require('mocha-mongoose')(dbURI)\n;\n\ndescribe(\"Example spec for a model\", function() {\n  beforeEach(function(done) {\n    if (mongoose.connection.db) return done();\n\n    mongoose.connect(dbURI, done);\n  });\n\n  it(\"can be saved\", function(done) {\n    new Dummy({a: 1}).save(done);\n  });\n\n  it(\"can be listed\", function(done) {\n    new Dummy({a: 1}).save(function(err, model){\n      if (err) return done(err);\n\n      new Dummy({a: 2}).save(function(err, model){\n        if (err) return done(err);\n\n        Dummy.find({}, function(err, docs){\n          if (err) return done(err);\n\n          // without clearing the DB between specs, this would be 3\n          docs.length.should.equal(2);\n          done();\n        });\n      });\n    });\n  });\n\n  it(\"can clear the DB on demand\", function(done) {\n    new Dummy({a: 5}).save(function(err, model){\n      if (err) return done(err);\n\n      clearDB(function(err){\n        if (err) return done(err);\n\n        Dummy.find({}, function(err, docs){\n          if (err) return done(err);\n\n          console.log(docs);\n\n          docs.length.should.equal(0);\n          done();\n        });\n      });\n    });\n  });\n});\n```\n\n## Example usage of manually clearing the DB:\n\nThis is a copy of example/manual.js\n\n```javascript\nvar dbURI    = 'mongodb://localhost/demo-app-clearing-db'\n  , expect   = require('chai').expect\n  , mongoose = require('mongoose')\n  , Dummy    = mongoose.model('Dummy', new mongoose.Schema({a:Number}))\n  , clearDB  = require('mocha-mongoose')(dbURI, {noClear: true})\n;\n\ndescribe(\"Example spec for a model\", function() {\n  before(function(done) {\n    if (mongoose.connection.db) return done();\n\n    mongoose.connect(dbURI, done);\n  });\n\n  before(function(done) {\n    clearDB(done);\n  });\n\n  it(\"can be saved\", function(done) {\n    Dummy.create({a: 1}, done);\n  });\n\n  it(\"can save another\", function(done) {\n    Dummy.create({a: 2}, done);\n  });\n\n  it(\"can be listed\", function(done) {\n     Dummy.find({}, function(err, models){\n      expect(err).to.not.exist;\n      expect(models).to.have.length(2);\n\n      done();\n     });\n  });\n\n  it(\"can clear the DB on demand\", function(done) {\n    Dummy.count(function(err, count){\n      expect(err).to.not.exist;\n      expect(count).to.equal(2);\n\n      clearDB(function(err){\n        expect(err).to.not.exist;\n\n        Dummy.find({}, function(err, docs){\n          expect(err).to.not.exist;\n\n          expect(docs.length).to.equal(0);\n          done();\n        });\n      });\n    });\n  });\n});\n```\n","maintainers":[{"name":"elliotf","email":"efoster+opensource@firetaco.com"}],"time":{"modified":"2022-06-20T01:33:53.603Z","created":"2012-07-08T07:45:27.426Z","0.0.1":"2012-07-08T07:45:29.148Z","0.0.2":"2012-07-10T05:21:01.374Z","0.0.3":"2012-09-17T21:15:52.761Z","0.0.4":"2012-10-27T18:29:08.054Z","0.1.0":"2012-10-27T20:24:04.969Z","0.1.1":"2013-03-01T06:58:53.777Z","0.1.2":"2013-03-01T07:05:43.173Z","0.1.4":"2013-03-01T07:54:34.000Z","0.1.5":"2013-04-19T20:34:20.521Z","1.0.0":"2013-12-08T21:22:57.640Z","1.0.1":"2013-12-08T21:39:16.566Z","1.0.2":"2014-11-12T01:29:09.961Z","1.0.3":"2014-12-08T20:17:35.747Z","1.0.4":"2015-03-18T06:38:50.043Z","1.1.0":"2015-08-17T14:59:07.170Z","1.1.1":"2015-11-22T18:57:07.430Z","1.2.0":"2016-03-17T00:36:10.574Z"},"author":{"name":"Elliot Foster","email":"github@firetaco.com"},"repository":{"type":"git","url":"git+https://github.com/elliotf/mocha-mongoose.git"},"homepage":"https://github.com/elliotf/mocha-mongoose#readme","bugs":{"url":"https://github.com/elliotf/mocha-mongoose/issues"},"license":"MIT","readmeFilename":"README.md","users":{"lukaserat":true,"naay":true}}