{"_id":"jasmine-pit","_rev":"231626","name":"jasmine-pit","description":"Writing tests for promises in jasmine is kind of a pain in the ass. jasmine-pit makes doing such things a tiny bit easier by providing an augmented version of `it()` (called `pit()`) that allows you to simply return a promise that may eventually assert ex","dist-tags":{"latest":"2.0.2"},"maintainers":[{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"jeffmo","email":"jeff@anafx.com"}],"time":{"modified":"2021-06-03T15:46:32.000Z","created":"2013-12-11T23:47:38.639Z","2.0.2":"2015-03-01T00:51:09.287Z","2.0.1":"2015-02-28T19:44:21.456Z","2.0.0":"2014-11-03T21:52:20.910Z","1.0.4":"2014-07-16T20:54:33.513Z","1.0.3":"2014-07-16T06:32:07.418Z","1.0.2":"2013-12-23T14:41:55.608Z","1.0.1":"2013-12-11T23:55:41.636Z","1.0.0":"2013-12-11T23:47:38.639Z"},"users":{"tchcxp":true},"author":{"name":"Jeff Morrison","email":"jeff@anafx.com"},"repository":{"type":"git","url":"git@github.com:jeffmo/jasmine-pit.git"},"versions":{"2.0.2":{"name":"jasmine-pit","version":"2.0.2","main":"index.js","homepage":"https://github.com/jeffmo/jasmine-pit","keywords":["testing promises jasmine pit jasmine-pit promise error"],"author":{"name":"Jeff Morrison","email":"jeff@anafx.com"},"repository":{"type":"git","url":"git@github.com:jeffmo/jasmine-pit.git"},"license":"MIT","gitHead":"89041a9537d486c05462be4d0d2ede75c10018e5","description":"Writing tests for promises in jasmine is kind of a pain in the ass. jasmine-pit makes doing such things a tiny bit easier by providing an augmented version of `it()` (called `pit()`) that allows you to simply return a promise that may eventually assert ex","bugs":{"url":"https://github.com/jeffmo/jasmine-pit/issues"},"_id":"jasmine-pit@2.0.2","scripts":{},"_shasum":"75571cb1bfacc0ae750d6948ad458d91ba80e596","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"jeffmo","email":"lbljeffmo@gmail.com"},"maintainers":[{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"jeffmo","email":"jeff@anafx.com"}],"dist":{"shasum":"75571cb1bfacc0ae750d6948ad458d91ba80e596","size":2539,"noattachment":false,"key":"/jasmine-pit/-/jasmine-pit-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-pit/download/jasmine-pit-2.0.2.tgz"},"directories":{},"publish_time":1425171069287,"_cnpm_publish_time":1425171069287,"_hasShrinkwrap":false},"2.0.1":{"name":"jasmine-pit","version":"2.0.1","main":"index.js","homepage":"https://github.com/jeffmo/jasmine-pit","keywords":["testing promises jasmine pit jasmine-pit promise error"],"author":{"name":"Jeff Morrison","email":"jeff@anafx.com"},"repository":{"type":"git","url":"git@github.com:jeffmo/jasmine-pit.git"},"license":"MIT","gitHead":"5e1683c4951b3396fd06ab8a2026702318a0808e","description":"Writing tests for promises in jasmine is kind of a pain in the ass. jasmine-pit makes doing such things a tiny bit easier by providing an augmented version of `it()` (called `pit()`) that allows you to simply return a promise that may eventually assert ex","bugs":{"url":"https://github.com/jeffmo/jasmine-pit/issues"},"_id":"jasmine-pit@2.0.1","scripts":{},"_shasum":"34697ee809bf84b8ef16d2186bb18eb440a27c15","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"jeffmo","email":"lbljeffmo@gmail.com"},"maintainers":[{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"jeffmo","email":"jeff@anafx.com"}],"dist":{"shasum":"34697ee809bf84b8ef16d2186bb18eb440a27c15","size":2779,"noattachment":false,"key":"/jasmine-pit/-/jasmine-pit-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-pit/download/jasmine-pit-2.0.1.tgz"},"directories":{},"publish_time":1425152661456,"_cnpm_publish_time":1425152661456,"_hasShrinkwrap":false},"2.0.0":{"name":"jasmine-pit","version":"2.0.0","main":"index.js","homepage":"https://github.com/jeffmo/jasmine-pit","keywords":["testing promises jasmine pit jasmine-pit promise error"],"author":{"name":"Jeff Morrison","email":"jeff@anafx.com"},"repository":{"type":"git","url":"git@github.com:jeffmo/jasmine-pit.git"},"gitHead":"b04f7bf1254aa9a2e1ec6f9af0f7be2ae9ba61ca","description":"Writing tests for promises in jasmine is kind of a pain in the ass. jasmine-pit makes doing such things a tiny bit easier by providing an augmented version of `it()` (called `pit()`) that allows you to simply return a promise that may eventually assert ex","bugs":{"url":"https://github.com/jeffmo/jasmine-pit/issues"},"_id":"jasmine-pit@2.0.0","scripts":{},"_shasum":"2d85b9aaa65270e6ff774382372855d4585c9083","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"jeffmo","email":"jeff@anafx.com"},"maintainers":[{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"jeffmo","email":"jeff@anafx.com"}],"dist":{"shasum":"2d85b9aaa65270e6ff774382372855d4585c9083","size":1763,"noattachment":false,"key":"/jasmine-pit/-/jasmine-pit-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-pit/download/jasmine-pit-2.0.0.tgz"},"directories":{},"publish_time":1415051540910,"_cnpm_publish_time":1415051540910,"_hasShrinkwrap":false},"1.0.4":{"name":"jasmine-pit","version":"1.0.4","main":"index.js","homepage":"https://github.com/jeffmo/jasmine-pit","keywords":["testing promises jasmine pit jasmine-pit promise error"],"author":{"name":"Jeff Morrison","email":"jeff@anafx.com"},"repository":{"type":"git","url":"git@github.com:jeffmo/jasmine-pit.git"},"description":"Writing tests for promises in jasmine is kind of a pain in the ass. jasmine-pit makes doing such things a tiny bit easier by providing an augmented version of `it()` (called `pit()`) that allows you to simply return a promise that may eventually assert ex","bugs":{"url":"https://github.com/jeffmo/jasmine-pit/issues"},"_id":"jasmine-pit@1.0.4","_shasum":"73ace2123e5585a7c00c00feb84882b60e3e96cd","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"jeffmo","email":"jeff@anafx.com"},"maintainers":[{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"jeffmo","email":"jeff@anafx.com"}],"dist":{"shasum":"73ace2123e5585a7c00c00feb84882b60e3e96cd","size":1721,"noattachment":false,"key":"/jasmine-pit/-/jasmine-pit-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-pit/download/jasmine-pit-1.0.4.tgz"},"directories":{},"publish_time":1405544073513,"_cnpm_publish_time":1405544073513,"_hasShrinkwrap":false},"1.0.3":{"name":"jasmine-pit","version":"1.0.3","main":"index.js","homepage":"https://github.com/jeffmo/jasmine-pit","keywords":["testing promises jasmine pit jasmine-pit promise error"],"author":{"name":"Jeff Morrison","email":"jeff@anafx.com"},"repository":{"type":"git","url":"git@github.com:jeffmo/jasmine-pit.git"},"description":"Writing tests for promises in jasmine is kind of a pain in the ass. jasmine-pit makes doing such things a tiny bit easier by providing an augmented version of `it()` (called `pit()`) that allows you to simply return a promise that may eventually assert ex","bugs":{"url":"https://github.com/jeffmo/jasmine-pit/issues"},"_id":"jasmine-pit@1.0.3","_shasum":"672aae483ba77bfcb814b09c64f2b87e9084b0f4","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"jeffmo","email":"jeff@anafx.com"},"maintainers":[{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"jeffmo","email":"jeff@anafx.com"}],"dist":{"shasum":"672aae483ba77bfcb814b09c64f2b87e9084b0f4","size":1719,"noattachment":false,"key":"/jasmine-pit/-/jasmine-pit-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-pit/download/jasmine-pit-1.0.3.tgz"},"directories":{},"publish_time":1405492327418,"_cnpm_publish_time":1405492327418,"_hasShrinkwrap":false},"1.0.2":{"name":"jasmine-pit","version":"1.0.2","main":"main.js","homepage":"https://github.com/jeffmo/jasmine-pit","keywords":["testing promises jasmine pit jasmine-pit promise error"],"author":{"name":"Jeff Morrison","email":"jeff@anafx.com"},"repository":{"type":"git","url":"git@github.com:jeffmo/jasmine-pit.git"},"readmeFilename":"README.md","description":"Writing tests for promises in jasmine is kind of a pain in the ass. jasmine-pit makes doing such things a tiny bit easier by providing an augmented version of `it()` (called `pit()`) that allows you to simply return a promise that may eventually assert expect()s (or propogate errors).","bugs":{"url":"https://github.com/jeffmo/jasmine-pit/issues"},"_id":"jasmine-pit@1.0.2","dist":{"shasum":"a0f5a152e823c1164d9a9be971c308d9e7034d48","size":1704,"noattachment":false,"key":"/jasmine-pit/-/jasmine-pit-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-pit/download/jasmine-pit-1.0.2.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"jeffmo","email":"jeff@anafx.com"},"maintainers":[{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"jeffmo","email":"jeff@anafx.com"}],"directories":{},"publish_time":1387809715608,"_cnpm_publish_time":1387809715608,"_hasShrinkwrap":false},"1.0.1":{"name":"jasmine-pit","version":"1.0.1","main":"main.js","_id":"jasmine-pit@1.0.1","description":"Writing tests for promises in jasmine is kind of a pain in the ass. jasmine-pit makes doing such things a tiny bit easier by providing an augmented version of `it()` (called `pit()`) that allows you to simply return a promise that may eventually assert expect()s (or propogate errors).","dist":{"shasum":"3bfe45d5ee709c6a969f19b4a2e32aaa3e9519f1","size":1111,"noattachment":false,"key":"/jasmine-pit/-/jasmine-pit-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-pit/download/jasmine-pit-1.0.1.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"jeffmo","email":"jeff@anafx.com"},"maintainers":[{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"jeffmo","email":"jeff@anafx.com"}],"directories":{},"publish_time":1386806141636,"_cnpm_publish_time":1386806141636,"_hasShrinkwrap":false},"1.0.0":{"name":"jasmine-pit","version":"1.0.0","main":"main.js","_id":"jasmine-pit@1.0.0","description":"Writing \"asynchronous\" tests in jasmine is kind of a pain in the ass. jasmine-pit makes doing such things a tiny bit easier by providing an augmented version of it() that allows you to simply return a promise that may eventually assert expect()s.","dist":{"shasum":"c5db827408a381fbe05c61d2edca5c3ef48f7131","size":1105,"noattachment":false,"key":"/jasmine-pit/-/jasmine-pit-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-pit/download/jasmine-pit-1.0.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"jeffmo","email":"jeff@anafx.com"},"maintainers":[{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"jeffmo","email":"jeff@anafx.com"}],"directories":{},"publish_time":1386805658639,"_cnpm_publish_time":1386805658639,"_hasShrinkwrap":false}},"readme":"# jasmine-pit\n\nWriting tests for promises in jasmine is kind of a pain in the ass.\njasmine-pit makes doing such things a tiny bit easier by providing an augmented\nversion of `it()` (called `pit()`) that allows you to simply return a promise that may eventually\nassert expect()s (or propogate errors).\n\n## Example\n```js\n\njasminePit.install(window);\n\ndescribe('MyTestSuite', functtion() {\n  pit('Spec 1', function() {\n    return funcThatReturnsPromise().then(function(stuff) {\n      expect(stuff).toBe(stuff_i_expect_it_to_be);\n    });\n  });\n});\n```\n\nThis will execute the promise chain and, if any errors occur along the way, they\nwill be propogated up to jasmine and reported as normal.\n\nDon't be afraid to take a look at the source. The definition for `pit()` is stupid\nsimple.\n","_attachments":{},"homepage":"https://github.com/jeffmo/jasmine-pit","bugs":{"url":"https://github.com/jeffmo/jasmine-pit/issues"},"license":"MIT"}