{"_id":"stest","_rev":"17-4c482024fb81a13efd42b9ab365dbfd8","name":"stest","description":"A sane event driven async testing framework.","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"author":{"name":"Siddharth Mahendraker","email":"siddharth_mahen@me.com"},"name":"stest","description":"Sane event driven async testing.","version":"0.0.1","repository":{"type":"git","url":"git://github.com/siddMahen/stest.git"},"main":"lib/stest.js","scripts":{"test":"srunner -s -r test/test-*.js"},"bin":{"srunner":"./bin/srunner.js"},"engines":{"node":">=0.4.12"},"dependencies":{"optimist":">=0.2.8"},"devDependencies":{},"_npmUser":{"name":"siddmahen","email":"siddharth_mahen@me.com"},"_id":"stest@0.0.1","_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"4e5b4420a2e75d2578483822d05df7480b4c2809","tarball":"https://registry.npmjs.org/stest/-/stest-0.0.1.tgz","integrity":"sha512-QnBWTLLCigaXUg9LAajq/CE5ehZlpryCaJ+3mCM/Lw8kBUrazG6wk1CX5K5t5rvFUcQ7vlyq2T30YBlYkF2qSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMSqaELzJVI6ZL2tG8IMBX2W1E7TJI5JWgzXChQOgIowIhAPkJTXpPUgTk73UcaDOZ1eURQn4/zv+nITv7+Tz25uzy"}]},"maintainers":[{"name":"siddmahen","email":"siddharth_mahen@me.com"}]},"0.0.2":{"author":{"name":"Siddharth Mahendraker","email":"siddharth_mahen@me.com"},"name":"stest","description":"Sane event driven async testing.","version":"0.0.2","keywords":["async","test","event"],"repository":{"type":"git","url":"git://github.com/siddMahen/stest.git"},"main":"lib/stest.js","scripts":{"test":"srunner -r test/test-.*.js"},"bin":{"srunner":"/bin/srunner.js"},"engines":{"node":">=0.4.12"},"dependencies":{"optimist":">=0.2.8","ansi-color":"0.2.x"},"devDependencies":{},"_npmUser":{"name":"siddmahen","email":"siddharth_mahen@me.com"},"_id":"stest@0.0.2","_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"11005209204fb7360d64db8b0da184b926fc375a","tarball":"https://registry.npmjs.org/stest/-/stest-0.0.2.tgz","integrity":"sha512-w/VmfMZvPR03Ef+BoI3+N5RfItUDOTHpg3NjgITaW4D9NBBMHSmGFMCPTjt5ouN9zOWtgAXtiuGE6IhzKcbOnw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGlbPZa5BxYXMuDMzo7nDkRSbvcHPLcq71hF3qxdjYioAiBQrQSJqy+Ny3e0uLLfTpL4tPdheJOQgTbuGYU8ZpCSWQ=="}]},"maintainers":[{"name":"siddmahen","email":"siddharth_mahen@me.com"}]},"0.0.3":{"author":{"name":"Siddharth Mahendraker","email":"siddharth_mahen@me.com"},"name":"stest","description":"A sane event driven async testing framework.","version":"0.0.3","keywords":["async","test","event","testing","framework"],"repository":{"type":"git","url":"git://github.com/siddMahen/stest.git"},"main":"lib/stest.js","scripts":{"test":"srunner -r test/test-.*\\.js"},"bin":{"srunner":"bin/srunner.js"},"engines":{"node":">=0.4.12"},"dependencies":{"optimist":">=0.2.8","ansi-color":"0.2.1"},"devDependencies":{},"_npmUser":{"name":"siddmahen","email":"siddharth_mahen@me.com"},"_id":"stest@0.0.3","_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"c156184eb1ce59075fa18fcd687bae14d02acd6d","tarball":"https://registry.npmjs.org/stest/-/stest-0.0.3.tgz","integrity":"sha512-kcjlJM+HBBxSHZA2i5u4V8s8QMclghDcc56aL/ptiNUYUjmimsm7I/NhjkQfFaarXpuEEB6eFeRQBC1p3/UuCA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFzFfRiZm/oPyED4lQN54vqEVyxFDqrCRuEpwJivvH8AIhAO+yy3kG3WBhBHlkaQCIJlj7ubH8UIDQuxNfGO5VqN9/"}]},"maintainers":[{"name":"siddmahen","email":"siddharth_mahen@me.com"}]},"0.0.4":{"author":{"name":"Siddharth Mahendraker","email":"siddharth_mahen@me.com"},"name":"stest","description":"A sane event driven async testing framework.","version":"0.0.4","keywords":["async","test","event","testing","framework"],"repository":{"type":"git","url":"git://github.com/siddMahen/stest.git"},"main":"lib/stest.js","scripts":{"test":"srunner -c lib/stest.js -r test/test-.*\\.js"},"bin":{"srunner":"bin/srunner.js"},"engines":{"node":">=0.4.12"},"dependencies":{"optimist":">=0.2.8","colors":">=0.6.0","runforcover":">=0.0.1"},"devDependencies":{},"_npmUser":{"name":"siddmahen","email":"siddharth_mahen@me.com"},"_id":"stest@0.0.4","_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.2","_defaultsLoaded":true,"dist":{"shasum":"066bc122b53361f5a6ac0efcd16860f5c217f5a6","tarball":"https://registry.npmjs.org/stest/-/stest-0.0.4.tgz","integrity":"sha512-YUksJB1F0xdyQQoz9Eu/sOYgG4H9+eMvqSYufojMP55wIFBpYpKLnB0L+z+jrje9hQlEB9GazHLtZ1GCfGCIKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDy0mvKHWe1+cqFqpToHj+0bPqyAVslRnhJ9KkTZy+3rwIgMAL7fUj4pExGu3ylsE+kPCDL/hqySfwzGcbc2UnmndI="}]},"maintainers":[{"name":"siddmahen","email":"siddharth_mahen@me.com"}]},"0.0.5":{"author":{"name":"Siddharth Mahendraker","email":"siddharth_mahen@me.com"},"name":"stest","description":"A sane event driven async testing framework.","version":"0.0.5","keywords":["async","test","event","testing","framework"],"repository":{"type":"git","url":"git://github.com/siddMahen/stest.git"},"main":"lib/stest.js","scripts":{"test":"srunner -c lib/stest.js -r test/test-.*\\.js"},"bin":{"srunner":"bin/srunner.js"},"engines":{"node":">=0.4.12"},"dependencies":{"optimist":">=0.2.8","colors":">=0.6.0","bunker":">=0.1.1"},"devDependencies":{},"_npmUser":{"name":"siddmahen","email":"siddharth_mahen@me.com"},"_id":"stest@0.0.5","_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"ade96e11aa60352a0b34ebc8dbc9dabfebf21ee0","tarball":"https://registry.npmjs.org/stest/-/stest-0.0.5.tgz","integrity":"sha512-hmVh8quhoWcxEuIAWL3XFjThUgz/crIL+UgDEFbGroxpdzIFNqwCozfQ1cUydsbvr12Ap9OeVlFlTSi7Juc4rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCW+/A+2cMYKBqd0SZNqc1j/l1t+g3pmOVE0sJO1yeelgIgE8qR7wUxUlw3S0fqbcuY9mAcuZVF0o5RmK+VC1WoxoQ="}]},"maintainers":[{"name":"siddmahen","email":"siddharth_mahen@me.com"}]},"0.0.6":{"author":{"name":"Siddharth Mahendraker","email":"siddharth_mahen@me.com"},"name":"stest","description":"A sane event driven async testing framework.","version":"0.0.6","keywords":["async","test","event","testing","framework"],"repository":{"type":"git","url":"git://github.com/siddMahen/stest.git"},"main":"lib/stest.js","scripts":{"test":"srunner -r test/test-.*\\.js"},"bin":{"srunner":"bin/srunner.js"},"engines":{"node":">=0.4.12"},"dependencies":{"optimist":">=0.2.8","colors":">=0.6.0","runforcover":">=0.0.1"},"devDependencies":{},"_npmUser":{"name":"siddmahen","email":"siddharth_mahen@me.com"},"_id":"stest@0.0.6","_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"4be754a8cbcc5aac3c74b2728178eaba202ed358","tarball":"https://registry.npmjs.org/stest/-/stest-0.0.6.tgz","integrity":"sha512-CUN60sYM1iwcCLCSTOmqT5IA7wXbbqFG00UNOAcOovvEBUB3LEliFE3rgnMuVmrmlKzl9vcmOT/Uf+TMFl7DnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDgb6wtFp/RO12wqkMmhSrEHgpMMVtMRcIMHSfbvbkjkAiA/lBX3i457tNO+i+ECzXkIYk4JkuSFeWrWZKYCrM44Pg=="}]},"maintainers":[{"name":"siddmahen","email":"siddharth_mahen@me.com"}]},"0.0.7":{"author":{"name":"Siddharth Mahendraker","email":"siddharth_mahen@me.com"},"name":"stest","description":"A sane event driven async testing framework.","version":"0.0.7","keywords":["async","test","event","testing","framework"],"repository":{"type":"git","url":"git://github.com/siddMahen/stest.git"},"main":"lib/stest.js","scripts":{"test":"srunner -r test/test-.*\\.js"},"bin":{"srunner":"bin/srunner.js"},"engines":{"node":">=0.4.12"},"dependencies":{"optimist":">=0.2.8","colors":">=0.6.0","runforcover":">=0.0.1"},"devDependencies":{},"_npmUser":{"name":"siddmahen","email":"siddharth_mahen@me.com"},"_id":"stest@0.0.7","_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"950f3564544fe1cf7da45b23444e3ca654d5a3dc","tarball":"https://registry.npmjs.org/stest/-/stest-0.0.7.tgz","integrity":"sha512-5n3/tuAM+UYV48nC13m+2LfQhLMHJ+9Ug/TQDRDwckWHsjbCKBIu5eVhpZ1dwHgEbmNkdXPDxpYlll7YKMdwCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCp0Efpt27xUKLFOpH2rFF/JiH2vwFRkSA0RnIiGdKGIgIhAJCYJle8F67uLajJT9aCo8viF6Yb0A8mmMWSeJMsBVtG"}]},"maintainers":[{"name":"siddmahen","email":"siddharth_mahen@me.com"}]}},"readme":"# stest - Sane async tests\n\n# Installation:\n\nUsing `npm`:\n\n\tnpm install stest\n\n# Usage:\n\nA very simple test:\n\n\tvar stest = require(\"stest\"),\n\t\tassert = require(\"assert\");\n\n\tvar opts = { timeout: 0 };\n\n\tstest.addCase(\"stest\", opts,{\n\t\tsetup: function(promise){\n\t\t\tpromise.emit(\"event\", 42);\n\t\t\tpromise.emit(\"other_event\", \"Hello!\");\n\t\t},\n\t\tevent: function(fortytwo){\n\t\t\tassert.equal(42, fortytwo);\n\t\t},\n\t\tother_event: function(hello){\n\t\t\tassert.equal(\"Hello!\", hello);\n\t\t},\n\t\tteardown: function(){\n\n\t\t}\n\t}).run();\n\n`stest` hands you a `promise` object which is an instance\nof `EventEmitter`. Use this to emit events and values\nwhen your async calls complete, and check them in the\ncorresponding functions associated with the name of the\nevent you emitted.\n\nThe `setup` and `teardown` functions are given to you\nto setup your test case. \n\nThe `opts` argument allows you to specify a `timeout`.\nIf all async calls are not called before that time, then \nthe `stest` will give you a heads up.\n\nTests can be run en masse like this:\n\n\tsrunner -r test/test-*.js\n\nOr like this:\n\n\tnode test.js\n\nIf you prefer not to use `srunner`.\n\n# License\n\n(The MIT License)\n\nCopyright (C) 2011 by Siddharth Mahendraker <siddharth_mahen@me.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n","maintainers":[{"name":"siddmahen","email":"siddharth_mahen@me.com"}],"time":{"modified":"2022-06-27T00:22:27.583Z","created":"2011-11-20T19:12:25.752Z","0.0.1":"2011-11-20T19:12:27.590Z","0.0.2":"2011-11-21T19:36:49.121Z","0.0.3":"2011-11-22T20:04:32.356Z","0.0.4":"2011-12-14T17:00:07.988Z","0.0.5":"2011-12-14T21:29:31.420Z","0.0.6":"2011-12-19T15:47:59.161Z","0.0.7":"2012-01-10T18:11:17.697Z"},"author":{"name":"Siddharth Mahendraker","email":"siddharth_mahen@me.com"},"repository":{"type":"git","url":"git://github.com/siddMahen/stest.git"}}