{"_id":"mocha-cases","_rev":"20-90370434acee6d374b23d0f39dd429dc","name":"mocha-cases","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.0":{"name":"mocha-cases","version":"0.1.0","keywords":["mocha","test","cases","runner","json"],"author":{"name":"Amobiz"},"license":"MIT","_id":"mocha-cases@0.1.0","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"0fba6eb09f89cd4a5baa4addd7e69014e9c99621","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.1.0.tgz","integrity":"sha512-u+PhvxPyJ3ysUdzMe+y1vLYVoaN3CA1elb7h/iVz7gARXZXhnC3owlCRMV83MSeyoH/cqGkjmcTtYX1YRTZVRA==","signatures":[{"sig":"MEYCIQCK0z1qarfAqZHQjY3SC5llMHcLatbn7WP9EOzSCjGX0AIhAM4sTccim1R+jSWhD3Cbmgq/zbShglVATlENXeCxr4zv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"0fba6eb09f89cd4a5baa4addd7e69014e9c99621","gitHead":"5f7a8e0bd816b3265cebb3e361174be2c7e2fa37","scripts":{"test":"test"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"2.14.2","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"4.0.0","dependencies":{"chai":"^3.4.1","mocha":"^2.3.4","chai-as-promised":"^5.1.0"}},"0.1.1":{"name":"mocha-cases","version":"0.1.1","keywords":["mocha","test","cases","runner","json"],"author":{"name":"Amobiz"},"license":"MIT","_id":"mocha-cases@0.1.1","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"2784f75508dd5ea9f2d6668b45d1655cf21b5c0a","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.1.1.tgz","integrity":"sha512-QYZOO87jJYzSGiP1Np24VpzgmInP1KDyuK3gQz9sUjfWQF5T1kqI4+09CYGK2d/Iut5045pX9pmJzmljj8FerA==","signatures":[{"sig":"MEQCIQCqfavni+qFreeqyLOFOw3yQHvDpBPQPYYzVzMrIcaycQIfM4/K75s9nmOt1KhMK3UbPaZ37wX4xZ9l5WvomBKAcg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"2784f75508dd5ea9f2d6668b45d1655cf21b5c0a","gitHead":"bc4aa38a53aa9ea31b8f7b875420dacb35dc5c4d","scripts":{"test":"mocha ./tests.js"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"2.14.2","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"4.0.0","dependencies":{"chai":"^3.4.1","mocha":"^2.3.4","chai-as-promised":"^5.1.0"}},"0.1.2":{"name":"mocha-cases","version":"0.1.2","keywords":["mocha","test","cases","runner","json"],"author":{"name":"Amobiz"},"license":"MIT","_id":"mocha-cases@0.1.2","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"139073420c82e69ce7bf9fd35a442b603fc9c5e4","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.1.2.tgz","integrity":"sha512-kw1wjnXD+3e48lWydYNgEn0gZvNp+F9HS58oipBExFkyTZXptndIHvDpQxd3Vy8PfkzO5ckkwkQNx0ldYZKE7Q==","signatures":[{"sig":"MEUCIQD2ZTfkEksKshFVRm4sE0iEI8l0J9dAT5KKELTOXl3NJgIgV88Cu0DFT7Q+u5DgvQ0LgMwJffdT6q4mqT2UqkOYDf8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"139073420c82e69ce7bf9fd35a442b603fc9c5e4","gitHead":"5f37ab72d7a23b56b35f20727723d7d78968549b","scripts":{"test":"mocha ./tests.js"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"2.14.2","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"4.0.0","dependencies":{"chai":"^3.4.1","mocha":"^2.3.4","chai-as-promised":"^5.1.0"}},"0.1.3":{"name":"mocha-cases","version":"0.1.3","keywords":["mocha","test","cases","runner","json"],"author":{"name":"Amobiz"},"license":"MIT","_id":"mocha-cases@0.1.3","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"15d23e7c84d5562444b3591965bf6a2a471cb90e","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.1.3.tgz","integrity":"sha512-qd5ogy5cASeI/kzSZCd72M94+mTvkzblPkk+VgTKAT5Q/MFOkcEN7khTAcT+r/aXG4pFKKswIPWKAIqt9yjVwQ==","signatures":[{"sig":"MEYCIQDE9yH3Hjz8Kc7Bk5DxC0qAbaN6LnIrn85lEtKHN3sq8AIhAM6jldvNonMYVEdNFKzSL53KhdDxfZxuNK/MgpqBfR31","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"15d23e7c84d5562444b3591965bf6a2a471cb90e","gitHead":"945c8b4b3e1abebb3223cf1ca6f7ba2f8be2f6d8","scripts":{"test":"mocha ./tests.js"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"2.14.2","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"4.0.0","dependencies":{"chai":"^3.4.1","mocha":"^2.3.4","chai-as-promised":"^5.1.0"}},"0.1.4":{"name":"mocha-cases","version":"0.1.4","keywords":["mocha","test","cases","runner","json"],"author":{"name":"Amobiz"},"license":"MIT","_id":"mocha-cases@0.1.4","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"9ff9804bc1de1676545b8246b6520aa36d750829","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.1.4.tgz","integrity":"sha512-W8DHjDitQYZez1WMZj4/voG0F5wd27WQZlo8NzmkPRFXjQPIxUdSnLzToNDn1YTC6uehNaOHp0CILvaxhPPTzA==","signatures":[{"sig":"MEUCIQDksyq9goAtsWIRntQov3SNe8y0SgffzBw9Ka4ZUiGTIgIgKnWPkBcxlpGQQIauNNk+dKPOP3LNgfpA8jhi5ebAyss=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"9ff9804bc1de1676545b8246b6520aa36d750829","gitHead":"3985c3ef7b49c24958c813bbbae7b08d575f7baa","scripts":{"test":"mocha ./tests.js"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"2.14.2","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"4.0.0","dependencies":{"chai":"^3.4.1","chai-as-promised":"^5.1.0"},"peerDependencies":{"mocha":"^2.3.4"}},"0.1.5":{"name":"mocha-cases","version":"0.1.5","keywords":["mocha","test","cases","runner","json"],"author":{"name":"Amobiz"},"license":"MIT","_id":"mocha-cases@0.1.5","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"678a7fa193ff59168af22c66e22cb0bf5fcc1ae0","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.1.5.tgz","integrity":"sha512-SrG/1A4+bVCLMRY0GaeuqxU7ehc+CbyDHswaocSnEWL9VJMASURPb9h9U+ZDofyBNGT3AS7eFBOJFa9ORFSMow==","signatures":[{"sig":"MEQCIFJMrF+D47Wwpwu8nL+0KP7DLeYvPVF2YanTyROdl9j/AiBFcBONadLbzejeuMP4501eItpjofLiLuU+VytCZRJFYQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"678a7fa193ff59168af22c66e22cb0bf5fcc1ae0","gitHead":"8cfaf53763e76d355f8faceac1b3f85f481c439a","scripts":{"test":"mocha"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"2.14.2","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"4.0.0","dependencies":{"chai":"^3.4.1","chai-as-promised":"^5.1.0"},"devDependencies":{"mocha":"^2.3.4"},"peerDependencies":{"mocha":"^2.3.4"}},"0.1.6":{"name":"mocha-cases","version":"0.1.6","keywords":["mocha","test","cases","runner","json"],"author":{"name":"Amobiz"},"license":"MIT","_id":"mocha-cases@0.1.6","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"8c5854fe99718ae6d087404627051a1be45e17e6","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.1.6.tgz","integrity":"sha512-qciMXTR3eFefFpv5FXi1EuuflFIZtoqk/YNdd1OTR6BdtBEBayxpxeCqEbrZEryM1I1JTiMwdvDmEVqqtcXBjg==","signatures":[{"sig":"MEUCIQCW6HkKQIuI71Y/aUepmC2+JxgT5eH4Hj2ILzhuVEQjdwIgJsnc0kfdwvtBymxNp9tjufVwNcY2Eq7wmZIzpilLQt8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"8c5854fe99718ae6d087404627051a1be45e17e6","gitHead":"e1c8014ffe9efab8e488fd32785abf7a03995ad1","scripts":{"test":"mocha"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"3.3.12","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"5.2.0","dependencies":{"chai":"^3.4.1","chai-as-promised":"^5.2.0"},"devDependencies":{"mocha":"^2.3.4"},"peerDependencies":{"mocha":"^2.3.4"}},"0.1.7":{"name":"mocha-cases","version":"0.1.7","keywords":["mocha","test","cases","runner","json"],"author":{"name":"Amobiz"},"license":"MIT","_id":"mocha-cases@0.1.7","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"e08268fae0266462fd1474e7af4f2d9ad5acc51f","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.1.7.tgz","integrity":"sha512-MktAKu+df7PB5KnncwrdiB2QpJ4xZlWqxYjRI/Nz6pfaaKqJlCd+N7i4rmXH1oIvzc1CO8vvaw1Mri0bBQJxMA==","signatures":[{"sig":"MEQCIHiiDKx9IkiF39lxOqM+tfx5+Z3vHXElP+JQI8QUEzWLAiBwItZqkTjxhzuDpFLb4YSPhUPvvdxoJaPrdB1Msyt91g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"e08268fae0266462fd1474e7af4f2d9ad5acc51f","gitHead":"72d589adb2b479491ac2aad14d4ff7eb0e0e5c49","scripts":{"test":"mocha"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"3.3.12","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"5.2.0","dependencies":{"chai":"^3.4.1","async-done":"^1.2.0"},"devDependencies":{"mocha":"^2.3.4"},"peerDependencies":{"mocha":"^2.3.4"}},"0.1.8":{"name":"mocha-cases","version":"0.1.8","keywords":["mocha","test","cases","runner","json"],"author":{"name":"Amobiz"},"license":"MIT","_id":"mocha-cases@0.1.8","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"95aad962e19dd056a113de41fd457a3aefcd4525","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.1.8.tgz","integrity":"sha512-licOSE2WgHO40i8M8b24E62bVin6r6QN2zL7F10wTK6aLvFA336ZWprE4A47lrqRRHIAfF1hczbwRCLruD5FQA==","signatures":[{"sig":"MEQCIC+oRxP/v9jZ6v0oKNZTfzkicaiwTPGhYsGT30Mu+8uAAiBE+6eem2++uGXFvbgYqgzp40VnZ70D/61d3NyDlxV30g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"95aad962e19dd056a113de41fd457a3aefcd4525","gitHead":"5991eae3b23d3ac1dd1dde9a9c5df81fa4e22740","scripts":{"test":"mocha"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"3.3.12","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"5.2.0","dependencies":{"chai":"^3.4.1","async-done":"^1.2.0"},"devDependencies":{"mocha":"^2.3.4"},"peerDependencies":{"mocha":"^2.3.4"}},"0.1.9":{"name":"mocha-cases","version":"0.1.9","keywords":["mocha","test","cases","runner","json"],"author":{"name":"Amobiz"},"license":"MIT","_id":"mocha-cases@0.1.9","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"1d7d03cf16155f0a179ac506d7ed2af8d34f06c9","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.1.9.tgz","integrity":"sha512-TOWjYsNwHh7vTEp8zWWyqaxJKwv6zSJv+QXqj16m04Xge8yogAV6MZHLUDPKjO8gt13exqz1d2bQwuPT/qIk6w==","signatures":[{"sig":"MEQCIG7mcitURH7SdUmI6ruAioRk5abuvcL8+slz1wPnReAtAiB5LrsPAXHObZXKQ+70oDPemPnAs1KzTBwGQftDZUD1dw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"1d7d03cf16155f0a179ac506d7ed2af8d34f06c9","gitHead":"7f31e577966acac55e2f131151e4f1a773914188","scripts":{"test":"mocha"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"3.3.12","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"5.2.0","dependencies":{"chai":"^3.4.1","async-done":"^1.2.0"},"devDependencies":{"mocha":"^2.3.4"},"peerDependencies":{"mocha":"^2.3.4"}},"0.1.10":{"name":"mocha-cases","version":"0.1.10","keywords":["mocha","test","cases","runner","json"],"author":{"name":"Amobiz"},"license":"MIT","_id":"mocha-cases@0.1.10","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"32bae9e02d68a87c2ef1f328bfd7127aeaf76b69","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.1.10.tgz","integrity":"sha512-69hYcrvD3hbDTXm6rWOv9uNKiTYoCvvxGlX/QxR24gmCPxeYeh8UBUI4cQ9hC2bmR36u2t6qSgrodnjIy3VF/g==","signatures":[{"sig":"MEQCIEXPHzWND6Xz9HnBqt7yHEC6OkUoGWTtuTAkTxhflWCXAiARQvPb02CIwZ5nL9A2xEhrUX/unJ7OQmzL9QzglqEPKg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"32bae9e02d68a87c2ef1f328bfd7127aeaf76b69","gitHead":"ac05b338c69ec2fadf4635fc055fafce970aa0ed","scripts":{"test":"mocha"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"3.3.12","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"5.2.0","dependencies":{"chai":"^3.4.1","async-done":"^1.2.0"},"devDependencies":{"mocha":"^2.3.4"},"peerDependencies":{"mocha":"^2.3.4"}},"0.2.0":{"name":"mocha-cases","version":"0.2.0","keywords":["mocha","test","cases","runner","json"],"author":{"url":"https://github.com/amobiz","name":"Amobiz","email":"amobiz.tw+github@gmail.com"},"license":"MIT","_id":"mocha-cases@0.2.0","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"contributors":[{"url":"https://github.com/vansosnin","name":"Ivan Sosnin","email":"vansosnin@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"db1b9cae0e03845ab3d51f91f3be5a76632b9a8e","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.2.0.tgz","integrity":"sha512-4EsZgTqophoVLssG8q9AayG7d3I7mq0UstiRVV/YnpRBFpd0iBfy/Q0cbP2DqiNh+pxTwvmfGXxLeFLHd+L4kw==","signatures":[{"sig":"MEYCIQD7laexByZE6EHpsjMu+c8g0sYhU6zfjwaWKgRKtQlqrwIhALt9TNvUTLVMhQxseAyuJpYPX8dkRvv8LKzp557pKCpQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"7a3295d84789b08f12cbb3de530776803fe81efa","scripts":{"test":"mocha"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"5.6.0","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"6.10.3","dependencies":{"chai":"^4.1.2","async-done":"^1.2.3"},"devDependencies":{"mocha":"^4.1.0","eslint":"^4.15.0"},"peerDependencies":{"mocha":">=2.3.4"},"_npmOperationalInternal":{"tmp":"tmp/mocha-cases-0.2.0.tgz_1515877280659_0.05870748125016689","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"mocha-cases","version":"0.2.1","keywords":["mocha","test","cases","runner","json"],"author":{"url":"https://github.com/amobiz","name":"Amobiz","email":"amobiz.tw+github@gmail.com"},"license":"MIT","_id":"mocha-cases@0.2.1","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"contributors":[{"url":"https://github.com/vansosnin","name":"Ivan Sosnin","email":"vansosnin@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"fc499fb7c413a86b2234df8f0709dd701398d929","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.2.1.tgz","integrity":"sha512-9tlXJPKlZgQ5+AEV1ZdR3zvWBgfSZjX/mDqwCGtJLTxcHTYaRSxNqw6ycbxCus23337vH45Oqvb/L6QG65Bb9Q==","signatures":[{"sig":"MEUCIBAwK//tenUO+wn3dknR4hRIwSsp2xSmbW3EcPpJVbaPAiEA4MbitX9qwLKBfBMKk4dG3o67kjhna0mmo4rkdUxxQb0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"826be75b0c1e751a571c04f343ed476d32416b02","scripts":{"test":"mocha"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"5.6.0","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"6.10.3","dependencies":{"chai":"^4.1.2","async-done":"^1.2.3"},"devDependencies":{"mocha":"^4.1.0","eslint":"^4.15.0"},"peerDependencies":{"mocha":">=2.3.4"},"_npmOperationalInternal":{"tmp":"tmp/mocha-cases-0.2.1.tgz_1516721165219_0.5154848385136575","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"mocha-cases","version":"0.3.0","keywords":["mocha","test","cases","runner","json"],"author":{"url":"https://github.com/amobiz","name":"Amobiz","email":"amobiz.tw+github@gmail.com"},"license":"MIT","_id":"mocha-cases@0.3.0","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"contributors":[{"url":"https://github.com/vansosnin","name":"Ivan Sosnin","email":"vansosnin@gmail.com"}],"homepage":"https://github.com/amobiz/mocha-cases#readme","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"dist":{"shasum":"af164bcdccf4b576844a43f2e151044f110dbdac","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.3.0.tgz","fileCount":5,"integrity":"sha512-ztfHMpb+BeoupzTph9EhburO5e+iC5xsX0y2Ky1EzrBLkOgQ1DYOp8kFDx2Ww8HMZAVZ4jBjIPpwX+GPzntrVQ==","signatures":[{"sig":"MEUCIQDhjjidl6xd/3GM49+60GR6dZ3AljbO3yARTP92Zpi8YwIgWhEuTLNnrm5WyuyrnCyo0H9L4XjwmgTwpuxP4jTqmL8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13317,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbuZ3CRA9TVsSAnZWagAAzi0P/A9Vsj728jkthZT7coJ0\nb4oI/IbT+ytEkmJ2OyLXwtlK/iRZcoeZG1RkMOlYfTSPU4otq4HCL5xe2eV9\nTjsxdXTPt7p958ztg1D5oXFqwiuEEVETzVKgOpWMBU/Wk36Q8SmfaILtEuSP\noaTiLd+2l9T6nimJEzSjNCCbP+1X4NuA4EMKX4Ihw7YkoObBFnpoPutRFpgm\nwvA9Q2cg6tUb5tgQyz2Hkkk0ajmTFcRtDUjgGMW/3mWhrob25uMZ4VDGjoSO\nChPiXPD7u8GjjpYV1Vjz6fu1ttqeZ0a8y3YHvgN4leOhm4UxbeJM4fPniDHm\nZ8VYRfgf/yi9WISH8taDP89au59YZm69Htu914AiE0t77u4N6n2kpdRDc5aB\nPKUTy0ORu2exInDgHk6xHDx3R4Ss91qxeBvlqdVcYqW34xig/8au0bUCnIEh\n+svukmoa8WE57pu5C2ImP0jhLvTrMtNmwy8SXH37IOTXjKu1QhFYa4VHTpxj\nRLSYB6QCmGiHdClHrkTqKB+nNvcgaEwpVTgN+WQUyB07XTPsvGeTZLg3bjUW\nuoXG1PfUDVKmhFdeOQWm2q764OqrUZvvCsI0I8fQDwM+mVsegIplshbj7seI\nIzKX8HlUgDT4uUvhaI5JP//e0fS7yh3sZfSA/1zld9/+//EycilyZ8YDHrnM\ny8Rj\r\n=D3r9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"ba162dbb55330710a27acc42ad55597d235f31ec","scripts":{"lint":"eslint .","test":"mocha index.test.js"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/mocha-cases.git","type":"git"},"_npmVersion":"6.8.0","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"chai":"^4.2.0","async-done":"^1.3.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^6.0.0","eslint":"^5.14.1"},"peerDependencies":{"mocha":">=2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mocha-cases_0.3.0_1550771831091_0.3032868121534067","host":"s3://npm-registry-packages"}},"0.3.1":{"name":"mocha-cases","version":"0.3.1","description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","main":"index.js","scripts":{"lint":"eslint .","test":"mocha index.test.js"},"repository":{"type":"git","url":"git+https://github.com/amobiz/mocha-cases.git"},"keywords":["mocha","test","cases","runner","json"],"author":{"name":"Amobiz","email":"amobiz.tw+github@gmail.com","url":"https://github.com/amobiz"},"contributors":[{"name":"Ivan Sosnin","email":"vansosnin@gmail.com","url":"https://github.com/vansosnin"}],"license":"MIT","bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"homepage":"https://github.com/amobiz/mocha-cases#readme","peerDependencies":{"mocha":">=2.0.0"},"devDependencies":{"eslint":"^9.39.2","globals":"^17.2.0","mocha":"^11.3.0"},"dependencies":{"async-done":"^1.3.1","chai":"^4.2.0"},"gitHead":"ec8e745229049a899fd572a1edb8790ddf635b07","_id":"mocha-cases@0.3.1","_nodeVersion":"25.5.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-bdtCitNEAklUmC3sbzq4LugcYPj9ovh5bm8/mRuM6tQ/pyAAJD/tpIyVqFU3YbYPLn6CUtArmK5J4fVLQFTCpQ==","shasum":"97dfdde5b67a570214ab4447f4ec1362d4a1e271","tarball":"https://registry.npmjs.org/mocha-cases/-/mocha-cases-0.3.1.tgz","fileCount":4,"unpackedSize":13268,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGXaiun7zFQsyb4eKEHwK94Q5/Ybge00qKbbpRRNkiJZAiBHMq72MnjGDsq4coahMJVotKWpw8wBAd3UeZlZTW/Mag=="}]},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"directories":{},"maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mocha-cases_0.3.1_1769580381448_0.31818210016647774"},"_hasShrinkwrap":false}},"time":{"created":"2015-11-22T21:05:48.403Z","modified":"2026-01-28T06:06:21.715Z","0.1.0":"2015-11-22T21:05:48.403Z","0.1.1":"2015-12-02T22:02:23.469Z","0.1.2":"2015-12-03T07:45:32.629Z","0.1.3":"2015-12-03T07:56:16.041Z","0.1.4":"2015-12-07T12:24:04.781Z","0.1.5":"2015-12-15T20:04:55.833Z","0.1.6":"2015-12-23T19:13:47.046Z","0.1.7":"2016-01-06T13:51:03.369Z","0.1.8":"2016-01-06T15:18:28.230Z","0.1.9":"2016-01-07T13:41:10.491Z","0.1.10":"2016-01-07T18:10:36.507Z","0.2.0":"2018-01-13T21:01:20.789Z","0.2.1":"2018-01-23T15:26:05.590Z","0.3.0":"2019-02-21T17:57:11.309Z","0.3.1":"2026-01-28T06:06:21.572Z"},"bugs":{"url":"https://github.com/amobiz/mocha-cases/issues"},"author":{"name":"Amobiz","email":"amobiz.tw+github@gmail.com","url":"https://github.com/amobiz"},"license":"MIT","homepage":"https://github.com/amobiz/mocha-cases#readme","keywords":["mocha","test","cases","runner","json"],"repository":{"type":"git","url":"git+https://github.com/amobiz/mocha-cases.git"},"description":"A tiny mocha test case runner. Suited for simple input to output validation tests.","contributors":[{"name":"Ivan Sosnin","email":"vansosnin@gmail.com","url":"https://github.com/vansosnin"}],"maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"readme":"# mocha-cases\nA tiny mocha test case runner. Suited for simple input to output validation tests.\n\n[![MIT](http://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/amobiz/mocha-cases/blob/master/LICENSE) [![npm version](https://badge.fury.io/js/mocha-cases.svg)](http://badge.fury.io/js/mocha-cases) [![David Dependency Badge](https://david-dm.org/amobiz/mocha-cases.svg)](https://david-dm.org/amobiz/mocha-cases)\n[![Build Status](https://travis-ci.org/amobiz/mocha-cases.svg?branch=master)](https://travis-ci.org/amobiz/mocha-cases)\n\n[![NPM](https://nodei.co/npm/mocha-cases.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/mocha-cases.png?downloads=true&downloadRank=true&stars=true) [![NPM](https://nodei.co/npm-dl/mocha-cases.png?months=6&height=3)](https://nodei.co/npm/mocha-cases/)\n\n\n## Install\n``` bash\nnpm install mocha-cases\n```\n\n## Usage\n\n### One case one value\n``` javascript\nvar test = require('mocha-cases');\n\nvar cases = [{\n  name: 'should {value.text} equal to {expected.text}', // name of the test,\n                                                        //   a string, supports nested value interpolation\n                                                        //   or a function, takes test value, expected value and options, and returns a string\n  value: { text: 'input value' },                       // input value\n  expected: { text: 'expected output value' },          // expected output value\n  error: RangeError,                                    // expected error value, instance or class\n  runner: function (value, options) {},                 // runner specific to this case\n  options: {},                                          // options specific to this case\n  only: false,                                          // run this case only?\n  skip: false,                                          // skip this case?\n  errback: false                                        // is the runner using an errback (callback)?\n}, {\n  name: 'case 2...',\n  ...\n}];\n\nvar options = {\n  errback: true,                                        // is all test defaults to errback?\n  prefix: ''                                             // prefix to test names\n};\n\nfunction runner(value, options, done) {                 // errback runner takes a `done` callback\n  setTimeout(function () {\n    done(null, 'expected output value');\n  }, 10);\n}\n\ndescribe('module: mocha-cases', function () {\n  describe('feature: cases', function () {\n    test(cases, runner, options);\n  });\n});\n```\n\nDefault pass through runner will be used if no runner provided at all.\n\n### One case vs. multiple values vs. one expected\n\nYou can use an array of `values` with a single `expected` value:\n\n``` javascript\ndescribe('prime number', function () {\n  test({\n    name: 'given prime number {value}, isPrime() returns true',\n    values: [2, 3, 5, 7, 11, 13],\n    expected: true\n  }, isPrime);\n});\n```\n\n### One case vs. multiple values vs. multiple expected\n\nYou can use an array of `values` and an array of `expected` values, to pair multiple given values and expected values:\n\n``` javascript\ndescribe('prime number', function () {\n  test({\n    name: 'given prime number {value}, isPrime() returns true, false otherwise',\n    values:   [2,    3,    4,     5,    6,     7,    8,     9],\n    expected: [true, true, false, true, false, true, false, false],\n    runner: isPrime\n  });\n});\n```\n\nOr, you can use `cases` to specify multiple cases:\n\n``` javascript\ndescribe('prime number', function () {\n  test({\n    name: 'isPrime({value}) should be {expected}',\n    cases: [{\n      value: 2,\n      expected: true\n    }, {\n      value: 3,\n      expected: true\n    }, {\n      value: 4,\n      expected: false\n    }, {\n      value: 5,\n      expected: true\n    }, {\n      value: 6,\n      expected: false\n    }, {\n      value: 7,\n      expected: true\n    }, {\n      value: 8,\n      expected: false\n    }, {\n      value: 9,\n      expected: false\n    }],\n    runner: isPrime\n  });\n});\n```\n\nIf your values are simple enougth, you may want to simplify them with a pair of value / expected value for each case:\n\n``` javascript\ndescribe('prime number', function () {\n  test({\n    name: 'isPrime({value}) should be {expected}',\n    cases: [\n      [2, true],\n      [3, true],\n      [4, false],\n      [5, true],\n      [6, false],\n      [7, true],\n      [8, false],\n      [9, false]\n    ],\n    runner: isPrime\n  });\n});\n```\n\n## Test\n``` bash\n$ npm test\n```\n\n## Alternatives\n\n * [data-driven](https://www.npmjs.com/package/data-driven)\n * [run-mocha-cases](https://www.npmjs.com/package/run-mocha-cases)\n * [mocha-check](https://www.npmjs.com/package/mocha-check)\n\n## Change Logs\n\n* 2019/02/22 - 0.3.0\n\n  * Feature: Allow escaping the brace characters `{` and `}` with `\\\\`.\n  * Feature: Allow entries of `cases` be an object.\n\n* 2018/01/23 - 0.2.1\n\n  * Feature: Accept function for test name\n  * Feature: Add default pass through runner\n\n* 2018/01/14 - 0.2.0\n\n  * NPM: Bump version, update readme and publish to npm.js.\n\n* 2017/12/07 - 0.1.11\n\n  * Feature: New format for adding test-cases.\n\n* 2016/01/08 - 0.1.10\n\n  * Feature: Allow `error` to be an `Error` instance, a class or a normal value.\n  * Feature: Allow test case negate `errback` option that enabled by overall options.\n\n* 2016/01/07 - 0.1.9\n\n  * Feature: Deprecate the `async` option. For sync/async runner that returning value, i.e. primitive value, promise, stream or observable, you don't have to add any option. For async runner that use errback (callback), you need to add `errback` option.\n\n* 2016/01/06 - 0.1.8\n\n  * Feature: Replace `chai-as-promised` with `async-done`. Now async runner can use callback or return promise, stream or observable.\n\n* 2015/12/24 - 0.1.6\n\n  * NPM: Update npm settings.\n\n* 2015/12/16 - 0.1.5\n\n  * Bug Fix: Fix error when expected values array contains falsy value.\n\n* 2015/12/07 - 0.1.4\n\n  * NPM: Move mocha from \"dependencies\" to \"peerDependencies\".\n\n* 2015/12/03 - 0.1.3\n\n  * Feature: Allow multiple values in one case using \"values\" keyword.\n\n* 2015/12/03 - 0.1.1\n\n  * Feature: Make runner optional, or can be defined either in global options or case options.\n  * Feature: Allow value interpolation in test name.\n\n* 2015/11/23 - 0.1.0\n\n  * First release.\n\n## License\nMIT\n\n## Author\n[Amobiz](https://github.com/amobiz)\n\n## Contributor\n[Ivan Sosnin](https://github.com/vansosnin)\n","readmeFilename":"README.md","users":{"amobiz":true}}