{"_id":"jasmine-pit","_rev":"35-ee444642e2c008c94292c04dcd7b3198","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"},"versions":{"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","tarball":"https://registry.npmjs.org/jasmine-pit/-/jasmine-pit-1.0.0.tgz","integrity":"sha512-FwSqSEJMTxPszkR0kARoS8ayRs7CV1y9iJll7LVWIiGcbvcOqgk206E6X0YJrmH4JGl1twvpGXNUpEn4Gj48kQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDVeQVUqxKC8Ie622ktHzyMSlNArJ7X2CL8gxkr2hqqaAiBdkkyC9VmtPIkUmkz5z62UMN+eeIIvXFrbTKNrdFmKxg=="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"jeffmo","email":"jeff@anafx.com"},"maintainers":[{"name":"jeffmo","email":"jeff@anafx.com"}],"directories":{}},"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 ex","dist":{"shasum":"3bfe45d5ee709c6a969f19b4a2e32aaa3e9519f1","tarball":"https://registry.npmjs.org/jasmine-pit/-/jasmine-pit-1.0.1.tgz","integrity":"sha512-1BzZSpyo9GJZwsfDBybs5ylEDxhiUrewk3u4CDC7RiqNd6zzcqoFDvu1cGpOZuwgWdQO1DVa0/0i8bNYmMaoOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdJV8zJSSp/+lWDiVs2czoBsAmzQRik12NxRHP7rXxnQIhAMMvHdOlxIgb+NwI0jHGou1L2OmigdibzmD7toNIyh3e"}]},"_npmVersion":"1.1.59","_npmUser":{"name":"jeffmo","email":"jeff@anafx.com"},"maintainers":[{"name":"jeffmo","email":"jeff@anafx.com"}],"directories":{}},"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"},"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.2","dist":{"shasum":"a0f5a152e823c1164d9a9be971c308d9e7034d48","tarball":"https://registry.npmjs.org/jasmine-pit/-/jasmine-pit-1.0.2.tgz","integrity":"sha512-f9jqprBjflonkB1PQVhqa+70rH92SPvPhAxAq0FwLkyVOI4vEFE//st8yWjJCIf1Bfv5zXoM2YKn15XXTPeHZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEeGHFXsp4fpgh0zNTncIJXsD2g+/v67EXCcQqDsZk7AAiBIr0yu3bC0umze0ReNfJEAJllVNEBs1Y63XQzVgj3Vvw=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"jeffmo","email":"jeff@anafx.com"},"maintainers":[{"name":"jeffmo","email":"jeff@anafx.com"}]},"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":"jeffmo","email":"jeff@anafx.com"}],"dist":{"shasum":"672aae483ba77bfcb814b09c64f2b87e9084b0f4","tarball":"https://registry.npmjs.org/jasmine-pit/-/jasmine-pit-1.0.3.tgz","integrity":"sha512-8FYEJCbyBJKhGvVw3QzkhA/iZWOdwwhOBCftIiz85yL5wrTzsz0irfD75rjRPjhuvSTl2Db6z7PkqctnhSJaxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyn+5x29vukNg7T4qCEc0Yt88Fw+sKpaQ4yvP+iu41QQIhAIMLcdO+11MZbQoqEk1ne4oFjayjmVHXvq/Ip7WhNk6T"}]}},"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":"jeffmo","email":"jeff@anafx.com"}],"dist":{"shasum":"73ace2123e5585a7c00c00feb84882b60e3e96cd","tarball":"https://registry.npmjs.org/jasmine-pit/-/jasmine-pit-1.0.4.tgz","integrity":"sha512-+ArFFbe/E218Rm9VaGbQb2f9dKBzMNComaVIQ8luKdg9/xKOL5NJWx9NtcDz4DU2BrWQdiQ+siclhIztbtUi3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF/VyWPMnNxtCf5CpDHMtD3YDJnqjxldQOVSom7Fpx2lAiEAroH903TwDOC3K/qxNoV1LnUVJ4xKKpaSRhzMSQ4qDCs="}]}},"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":"jeffmo","email":"jeff@anafx.com"}],"dist":{"shasum":"2d85b9aaa65270e6ff774382372855d4585c9083","tarball":"https://registry.npmjs.org/jasmine-pit/-/jasmine-pit-2.0.0.tgz","integrity":"sha512-SJ1+fCNLKiMm54pSTSfydaJWRwyQsP5sNq3wMi3Rt/xWvJaD5sXjgy0KQ9nKg9bAtHEIyp9dNubCrYOpYANtIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDvta+p0TVMZoI3X0vIHcXsMnq3CBLOzEMbMqnWMqzcnAiA7HGKNR1JtWD567hb0gLSx+z6i4I9Hg9l6XgzMsvOAQQ=="}]}},"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":"jeffmo","email":"jeff@anafx.com"}],"dist":{"shasum":"34697ee809bf84b8ef16d2186bb18eb440a27c15","tarball":"https://registry.npmjs.org/jasmine-pit/-/jasmine-pit-2.0.1.tgz","integrity":"sha512-b98FH7viT+QVxBd+cI4LT4r3yTzOj5FJ1grCdhGbk2jXBn+zQ4IVs+HmCBBbV1qGV6+oRxYtSjaiJZGTYRa64A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEj8rcllGfM0AeCAxvGtuaZ7eoPPaN2zS5nfcUqhqBikAiBRjMXTQNMsqL8+rc93UpG34QGIBs+kq72UkkpyUpFsNA=="}]}},"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":"jeffmo","email":"jeff@anafx.com"}],"dist":{"shasum":"75571cb1bfacc0ae750d6948ad458d91ba80e596","tarball":"https://registry.npmjs.org/jasmine-pit/-/jasmine-pit-2.0.2.tgz","integrity":"sha512-RuiO/mG7+srYueK8/xKRMmSvWAZcgL+ouUgPGtNu9l0NNlCcuDUNUtOpmhHVODY3xLol4IwYOc+RImXfSfFpNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHbqfzkiGkaz3hYU5EXDHNSjXHxYihTguhiqcQF+BFiyAiB7jyAlAcvxJduNpqjdLZvsttrJSYuIJxChb4Vw8S1UvA=="}]}}},"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","maintainers":[{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"jeffmo","email":"lbljeffmo@gmail.com"}],"time":{"modified":"2022-06-19T03:47:26.020Z","created":"2013-12-11T23:47:37.403Z","1.0.0":"2013-12-11T23:47:38.639Z","1.0.1":"2013-12-11T23:55:41.636Z","1.0.2":"2013-12-23T14:41:55.608Z","1.0.3":"2014-07-16T06:32:07.418Z","1.0.4":"2014-07-16T20:54:33.513Z","2.0.0":"2014-11-03T21:52:20.910Z","2.0.1":"2015-02-28T19:44:21.456Z","2.0.2":"2015-03-01T00:51:09.287Z"},"author":{"name":"Jeff Morrison","email":"jeff@anafx.com"},"repository":{"type":"git","url":"git@github.com:jeffmo/jasmine-pit.git"},"homepage":"https://github.com/jeffmo/jasmine-pit","keywords":["testing promises jasmine pit jasmine-pit promise error"],"bugs":{"url":"https://github.com/jeffmo/jasmine-pit/issues"},"readmeFilename":"README.md","license":"MIT","users":{"tchcxp":true}}