{"name":"test-result","version":"2.0.0","description":"A simple module to mark the result of your tests","browser":"browser.js","main":"index.js","keywords":[],"dependencies":{},"scripts":{},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/test-result.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"1d8ccf7116d420a34063b95cc27d6b8186ff17e9","bugs":{"url":"https://github.com/ForbesLindesay/test-result/issues"},"homepage":"https://github.com/ForbesLindesay/test-result","_id":"test-result@2.0.0","_shasum":"140486ab1ea94a2c575e22b3f6cfa96271ce459e","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"140486ab1ea94a2c575e22b3f6cfa96271ce459e","tarball":"http://registry-npm.ywwl.com/test-result/download/test-result-2.0.0.tgz","integrity":"sha512-FfrEuHno0/7d6leYA5r1mfjChYmG3urzHvGQJKgJH8byyzYBt3uqeqeWE2iiPXQ8a5Lf/N54ajDWN0BKGovBkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFIpOQT0Fke+pQKd7rfRFnKI2hZAYucZXu+wG9cDkIhrAiEA+51jkfqatHSf/htjiC8zNkqT+eK2zUf5CSKpc6prRak="}],"size":1807,"noattachment":false,"key":"/test-result/-/test-result-2.0.0.tgz"},"readme":"# test-result\n\nA simple module to mark the result of your tests\n\n[![Build Status](https://img.shields.io/travis/ForbesLindesay/test-result/master.svg)](https://travis-ci.org/ForbesLindesay/test-result)\n[![Dependency Status](https://img.shields.io/gemnasium/ForbesLindesay/test-result.svg)](https://gemnasium.com/ForbesLindesay/test-result)\n[![NPM version](https://img.shields.io/npm/v/test-result.svg)](https://www.npmjs.org/package/test-result)\n\n## Installation\n\n    npm install test-result\n\n## Usage\n\n```js\nvar result = require('test-result');\n\n// if tests passed\nresult.pass('the best tests');\n// if tests failed\nresult.fail('the worst tests');\n```\n\n## On the server\n\nIt will log a message for test pass or fail.  It will also `process.exit(1)` if the tests failed.\n\n## On the client\n\nIt will log a message for test pass or fail if the browser has console support.  It will also count the number of completed, passed and failed tests in three counters, initialized as:\n\n```js\nwindow.TESTS_COMPLETE = 0;\nwindow.TESTS_PASSED = 0;\nwindow.TESTS_FAILED = 0;\n```\n\n## License\n\n  MIT\n","publish_time":1423669712611,"_cnpm_publish_time":1423669712611,"dist-tags":{"latest":"2.0.0"}}