{"_id":"jasmine-check","_rev":"155165","name":"jasmine-check","description":"Generative property tests for Jasmine","dist-tags":{"latest":"1.0.0-rc.0"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"time":{"modified":"2021-06-03T11:35:47.000Z","created":"2014-08-13T00:39:14.419Z","1.0.0-rc.0":"2017-04-26T05:49:26.086Z","0.1.5":"2016-05-31T19:58:44.951Z","0.1.4":"2016-05-31T17:51:33.503Z","0.1.3":"2014-08-13T06:51:03.370Z","0.1.2":"2014-08-13T03:03:35.746Z","0.1.1":"2014-08-13T02:57:47.453Z","0.1.0":"2014-08-13T00:39:14.419Z"},"users":{},"author":{"name":"Lee Byron","url":"https://github.com/leebyron"},"repository":{"type":"git","url":"git://github.com/leebyron/testcheck-js.git"},"versions":{"1.0.0-rc.0":{"name":"jasmine-check","version":"1.0.0-rc.0","description":"Generative property tests for Jasmine","homepage":"https://github.com/leebyron/testcheck-js/tree/master/integrations/jasmine-check","license":"BSD-3-Clause","author":{"name":"Lee Byron","url":"https://github.com/leebyron"},"repository":{"type":"git","url":"git://github.com/leebyron/testcheck-js.git"},"bugs":{"url":"https://github.com/leebyron/testcheck-js/issues"},"main":"jasmine-check.js","dependencies":{"testcheck":"^1.0.0-rc"},"devDependencies":{"jasmine":"^2.5.2","jasmine-node":"^1.14.5","jest-cli":"^18.0.0"},"files":["jasmine-check.js","README.md","LICENSE"],"keywords":["jasmine","quickcheck","testcheck","generative","property","test"],"scripts":{"test":"jasmine && jasmine-node spec && jest"},"_id":"jasmine-check@1.0.0-rc.0","_shasum":"117728c150078ecf211986c5f164275b71e937a4","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"117728c150078ecf211986c5f164275b71e937a4","size":4393,"noattachment":false,"key":"/jasmine-check/-/jasmine-check-1.0.0-rc.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-check/download/jasmine-check-1.0.0-rc.0.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/jasmine-check-1.0.0-rc.0.tgz_1493185764086_0.6163193590473384"},"directories":{},"publish_time":1493185766086,"_cnpm_publish_time":1493185766086,"_hasShrinkwrap":false},"0.1.5":{"name":"jasmine-check","version":"0.1.5","description":"Generative property tests for Jasmine","homepage":"https://github.com/leebyron/jasmine-check","author":{"name":"Lee Byron","url":"https://github.com/leebyron"},"repository":{"type":"git","url":"git://github.com/leebyron/jasmine-check.git"},"bugs":{"url":"https://github.com/leebyron/jasmine-check/issues"},"main":"jasmine-check.js","dependencies":{"testcheck":"^0.1.0"},"devDependencies":{"jasmine-node":"^1.14.5"},"files":["jasmine-check.js","README.md","LICENSE"],"keywords":["jasmine","quickcheck","testcheck","generative","property","test"],"scripts":{"test":"jasmine-node spec/"},"license":"BSD","gitHead":"3dee360803118024c5b2068adc3d80d9d995af84","_id":"jasmine-check@0.1.5","_shasum":"dbad7eec56261c4b3d175ada55fe59b09ac9e415","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"dbad7eec56261c4b3d175ada55fe59b09ac9e415","size":3057,"noattachment":false,"key":"/jasmine-check/-/jasmine-check-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-check/download/jasmine-check-0.1.5.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jasmine-check-0.1.5.tgz_1464724724529_0.6778640132397413"},"directories":{},"publish_time":1464724724951,"_cnpm_publish_time":1464724724951,"_hasShrinkwrap":false},"0.1.4":{"name":"jasmine-check","version":"0.1.4","description":"Generative property tests for Jasmine","homepage":"https://github.com/leebyron/jasmine-check","author":{"name":"Lee Byron","url":"https://github.com/leebyron"},"repository":{"type":"git","url":"git://github.com/leebyron/jasmine-check.git"},"bugs":{"url":"https://github.com/leebyron/jasmine-check/issues"},"main":"jasmine-check.js","dependencies":{"testcheck":"^0.1.0"},"devDependencies":{"jasmine-node":"^1.14.5"},"files":["jasmine-check.js","README.md","LICENSE"],"keywords":["jasmine","quickcheck","testcheck","generative","property","test"],"scripts":{"test":"jasmine-node spec/"},"license":"BSD","gitHead":"24e630ba8f1ab94558062ae353c348a89abae825","_id":"jasmine-check@0.1.4","_shasum":"4f1322306a3a00a625642b6fec48a3ac9307fb8a","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"4f1322306a3a00a625642b6fec48a3ac9307fb8a","size":2990,"noattachment":false,"key":"/jasmine-check/-/jasmine-check-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-check/download/jasmine-check-0.1.4.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/jasmine-check-0.1.4.tgz_1464717091245_0.7190135812852532"},"directories":{},"publish_time":1464717093503,"_cnpm_publish_time":1464717093503,"_hasShrinkwrap":false},"0.1.3":{"name":"jasmine-check","version":"0.1.3","description":"Generative property tests for Jasmine","homepage":"https://github.com/leebyron/jasmine-check","author":{"name":"Lee Byron","url":"https://github.com/leebyron"},"repository":{"type":"git","url":"git://github.com/leebyron/jasmine-check"},"bugs":{"url":"https://github.com/leebyron/jasmine-check/issues"},"main":"jasmine-check.js","dependencies":{"testcheck":"^0.1.0"},"devDependencies":{"jasmine-node":"^1.14.5"},"files":["jasmine-check.js","README.md","LICENSE"],"keywords":["jasmine","quickcheck","testcheck","generative","property","test"],"scripts":{"test":"jasmine-node spec/"},"license":"BSD","_id":"jasmine-check@0.1.3","dist":{"shasum":"4cf58ff7524bb6668d023b6814153fd6f76efdad","size":3947,"noattachment":false,"key":"/jasmine-check/-/jasmine-check-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-check/download/jasmine-check-0.1.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"directories":{},"publish_time":1407912663370,"_cnpm_publish_time":1407912663370,"_hasShrinkwrap":false},"0.1.2":{"name":"jasmine-check","version":"0.1.2","description":"Generative property tests for Jasmine","homepage":"https://github.com/leebyron/jasmine-check","author":{"name":"Lee Byron","url":"https://github.com/leebyron"},"repository":{"type":"git","url":"git://github.com/leebyron/jasmine-check"},"bugs":{"url":"https://github.com/leebyron/jasmine-check/issues"},"main":"jasmine-check.js","dependencies":{"testcheck":"^0.1.0"},"devDependencies":{"jasmine-node":"^1.14.5"},"files":["jasmine-check.js","README.md","LICENSE"],"keywords":["jasmine","quickcheck","testcheck","generative","property","test"],"scripts":{"test":"jasmine-node spec/"},"license":"BSD","_id":"jasmine-check@0.1.2","dist":{"shasum":"b2bc310c43e999d61e7a4df08a42bd49e9a7ce55","size":3890,"noattachment":false,"key":"/jasmine-check/-/jasmine-check-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-check/download/jasmine-check-0.1.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"directories":{},"publish_time":1407899015746,"_cnpm_publish_time":1407899015746,"_hasShrinkwrap":false},"0.1.1":{"name":"jasmine-check","version":"0.1.1","description":"Generative property tests for Jasmine","homepage":"https://github.com/leebyron/jasmine-check","author":{"name":"Lee Byron","url":"https://github.com/leebyron"},"repository":{"type":"git","url":"https://github.com/leebyron/jasmine-check"},"bugs":{"url":"https://github.com/leebyron/jasmine-check/issues"},"main":"jasmine-check.js","dependencies":{"testcheck":"^0.1.0"},"devDependencies":{"jasmine-node":"^1.14.5"},"files":["jasmine-check.js","README.md","LICENSE"],"keywords":["jasmine","quickcheck","testcheck","generative","property","test"],"scripts":{"test":"jasmine-node spec/"},"license":"BSD","_id":"jasmine-check@0.1.1","dist":{"shasum":"233b2ca79d19fc921b090e4230976ac2eab8cf7c","size":3884,"noattachment":false,"key":"/jasmine-check/-/jasmine-check-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-check/download/jasmine-check-0.1.1.tgz"},"_from":"./","_npmVersion":"1.4.3","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"directories":{},"publish_time":1407898667453,"_cnpm_publish_time":1407898667453,"_hasShrinkwrap":false},"0.1.0":{"name":"jasmine-check","version":"0.1.0","description":"Generative property tests for Jasmine","homepage":"https://github.com/leebyron/jasmine-check","author":{"name":"Lee Byron","url":"https://github.com/leebyron"},"repository":{"type":"git","url":"https://github.com/leebyron/jasmine-check"},"bugs":{"url":"https://github.com/leebyron/jasmine-check/issues"},"main":"jasmine-check.js","dependencies":{"testcheck":"^0.1.0"},"devDependencies":{"jasmine-node":"^1.14.5"},"files":["jasmine-check.js","README.md","LICENSE"],"keywords":["jasmine","quickcheck","testcheck","generative","property","test"],"scripts":{"test":"jasmine-node spec/"},"license":"BSD","_id":"jasmine-check@0.1.0","dist":{"shasum":"dc356e3547f6776548c2378d76c70776312317a6","size":3922,"noattachment":false,"key":"/jasmine-check/-/jasmine-check-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jasmine-check/download/jasmine-check-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"directories":{},"publish_time":1407890354419,"_cnpm_publish_time":1407890354419,"_hasShrinkwrap":false}},"readme":"Generative property testing for Jasmine\n=======================================\n\n`jasmine-check` adds the generative testing power of [`testcheck-js`](https://github.com/leebyron/testcheck-js)\nto [Jasmine](http://jasmine.github.io/). This allows some of your Jasmine tests\nto accept arguments and ensure your tests pass not just under your contrived\ntest cases but also pass for hundreds of randomly generated test cases.\n\n\nGetting started\n---------------\n\nInstall `jasmine-check` using npm.\n\n```shell\nnpm install jasmine-check\n```\n\nThen include and install `jasmine-check` before your test suite.\n\n```javascript\nrequire('jasmine-check').install();\n```\n\n\nExample\n-------\n\n```javascript\nrequire('jasmine-check').install();\n\ndescribe('MySpec', () => {\n\n  check.it('accepts an int and a string', gen.int, gen.string, (x, y) => {\n    expect(x).toEqual(jasmine.any(Number));\n    expect(y).toEqual(jasmine.any(String));\n  });\n\n});\n```\n\nThe `gen` global object is provided directly by `testcheck-js` and defines what\ntype of random values to generate. The test will be run numerous times with\ndifferent random values, ensuring all expectations are met for every run. If a\ntest expectation fails, then the test will re-run with \"smaller\" values until\nthe smallest failing value is found which can better help explain edge cases\nwith your test and produce consistent results, despite being initially fueled\nby randomness.\n\n### Options\n\nIf a test is taking a long time, needs to generate larger values, or should be\nrun with a consistent random seed, you can alter the behavior with `options`:\n\n```js\n{\n  times: number;   // the number of test cases to run. Default: 100\n  maxSize: number; // the maximum \"size\" of the test data. Default: 200\n  seed: number;    // defaults to a random value from 1 to 2^32-1.\n}\n```\n\nTo use these options with your check, include an options object after\nthe description:\n\n```js\ncheck.it('runs 10 times', {times: 10}, gen.sPosInt, x => {\n  expect(x).toBeGreaterThan(0);\n});\n```\n\nTo learn more about property testing, or to learn about the available value\ngenerators, check out [`testcheck-js`](https://github.com/leebyron/testcheck-js).\n","_attachments":{},"homepage":"https://github.com/leebyron/testcheck-js/tree/master/integrations/jasmine-check","bugs":{"url":"https://github.com/leebyron/testcheck-js/issues"},"license":"BSD-3-Clause"}