{"_id":"phantomjs-test-provisions","_rev":"31-0d2716a1b39bf4370a45af4726d9e181","name":"phantomjs-test-provisions","description":"Testing for PhantomJS scripts.","dist-tags":{"latest":"0.0.12"},"versions":{"0.0.1":{"name":"phantomjs-test-provisions","description":"Testing for PhantomJS scripts.","readmeFilename":"README.md","version":"0.0.1","homepage":"https://github.com/kanzure/phantomjs-test-provisions","author":{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"},"repository":{"type":"git","url":"https://github.com/kanzure/phantomjs-test-provisions"},"bugs":{"url":"https://github.com/kanzure/phantomjs-test-provisions/issues","email":"kanzure@gmail.com"},"licenses":[{"license":"BSD"}],"keywords":["phantomjs","testing","test","unit testing","BDD","TDD","jasmine"],"engines":{"phantomjs":">=0.9.0"},"scripts":{"test":"/usr/bin/env phantomjs tests/run-tests.js"},"devDependencies":{},"dependencies":{"chai":"~1.5.0","jasmine-standalone":">=1.3.1","jasmine-console":">=0.0.1","grunt":"~0.4.0","grunt-exec":">=0.4.0"},"optionalDependencies":{"grunt":"~0.4.0","grunt-exec":">=0.4.0"},"main":"./src/main.js","contributors":[{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"}],"readme":"# phantomjs-test-provisions\n\n[PhantomJS](http://phantomjs.org/) unit testing module installable through npm.\nMakes your PhantomJS javascript spaghetti testable, reusable and maybe even\nproduction-ready.\n\nNote that PhantomJS must be installed. It is not a directly stated dependency\nbecause many developers choose to install phantomjs separately (outside of\nnode/npm), and an explicit dependency on PhantomJS would entail downloading an\nadditional copy of the PhantomJS binary.\n\nphantomjs-test-provisions uses a standalone version of Jasmine. This package is\nlargely based off of code in the upstream PhantomJS repository. As a separate\nnode module, it could be a quick option for developers interested in adding\ntesting to their PhantomJS outer context (JavaScriptCore environment).\n\n# install\n\nWith [npm](http://npmjs.org/) do:\n\n``` bash\nnpm install phantomjs-test-provisions\n```\n\n# usage\n\nThere is a default example which can run immediately:\n\n``` bash\nnpm test\n```\n\nAlso there is an example using grunt (see `Gruntfile.js`):\n\n``` bash\ngrunt test\n```\n\nTo add tests to a separate PhantomJS module, add a `tests/run-tests.js` that looks like this:\n\n``` js\n// load and setup phantomjs-test-provisions\nvar testprovisions = require(\"./../node_modules/phantomjs-test-provisions\");\nvar jasmine = testprovisions.jasmine;\nvar jasmineConsoleReporter = testprovisions.jasmineConsoleReporter;\nvar chai = testprovisions.chai;\nvar should = chai.should();\nvar it = jasmine.it;\nvar describe = jasmine.describe;\n\n/* Remember to setup the module if it's expected to be available later. It\ncould also be required() inside each individual test. */\nvar mymodule = require(\"./../../mymodule\")\n\n// include the custom test files here\nphantom.injectJs(\"./test-sample.js\");\n\n// launch the tests\nvar jasmineEnv = testprovisions.configureJasmine();\njasmineEnv.execute();\n```\n\nThen write tests in `tests/test-sample.js` like:\n\n``` js\ndescribe(\"phantomjs-test-provisions example test\", function() {\n    it(\"should exist\", function() {\n        should.exist(mymodule);\n    });\n});\n```\n\n# license\n\nBSD\n","_id":"phantomjs-test-provisions@0.0.1","dist":{"shasum":"d90b92b41e815d1c71a6d7f12da0552385a5c245","tarball":"https://registry.npmjs.org/phantomjs-test-provisions/-/phantomjs-test-provisions-0.0.1.tgz","integrity":"sha512-O92ij9x5hmJKNukUFSo59iv31e6a5i2Ot4ZWRkEcz1+6jcS1Zw+jkWinENXj3O0y3urmL0UkCKd5w9ixa6GLxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICR5Pr/Fl0qWTPvMN4RSIKHiP+ArkXCxHLYJ/FNm1ADHAiEA7SLqtfX1q4kjl0LoAuIkYqhttkBI3B32W02F2YZ66Io="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"kanzure","email":"kanzure@gmail.com"},"maintainers":[{"name":"kanzure","email":"kanzure@gmail.com"}],"directories":{}},"0.0.2":{"name":"phantomjs-test-provisions","description":"Testing for PhantomJS scripts.","readmeFilename":"README.md","version":"0.0.2","homepage":"https://github.com/kanzure/phantomjs-test-provisions","author":{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"},"repository":{"type":"git","url":"https://github.com/kanzure/phantomjs-test-provisions"},"bugs":{"url":"https://github.com/kanzure/phantomjs-test-provisions/issues","email":"kanzure@gmail.com"},"license":"BSD","keywords":["phantomjs","testing","test","unit testing","BDD","TDD","jasmine"],"engines":{"phantomjs":">=0.9.0"},"scripts":{"test":"/usr/bin/env phantomjs tests/run-tests.js"},"devDependencies":{},"dependencies":{"chai":"~1.5.0","jasmine-standalone":">=1.3.1","jasmine-console":">=0.0.1","grunt":"~0.4.0","grunt-exec":">=0.4.0"},"optionalDependencies":{"grunt":"~0.4.0","grunt-exec":">=0.4.0"},"main":"./src/main.js","contributors":[{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"}],"readme":"# phantomjs-test-provisions\n\n[PhantomJS](http://phantomjs.org/) unit testing module installable through npm.\nMakes your PhantomJS javascript spaghetti testable, reusable and maybe even\nproduction-ready.\n\nNote that PhantomJS must be installed. It is not a directly stated dependency\nbecause many developers choose to install phantomjs separately (outside of\nnode/npm), and an explicit dependency on PhantomJS would entail downloading an\nadditional copy of the PhantomJS binary.\n\nphantomjs-test-provisions uses a standalone version of Jasmine. This package is\nlargely based off of code in the upstream PhantomJS repository. As a separate\nnode module, it could be a quick option for developers interested in adding\ntesting to their PhantomJS outer context (JavaScriptCore environment).\n\n# install\n\nWith [npm](http://npmjs.org/) do:\n\n``` bash\nnpm install phantomjs-test-provisions\n```\n\n# usage\n\nThere is a default example which can run immediately:\n\n``` bash\nnpm test\n```\n\nAlso there is an example using grunt (see `Gruntfile.js`):\n\n``` bash\ngrunt test\n```\n\nTo add tests to a separate PhantomJS module, add a `tests/run-tests.js` that looks like this:\n\n``` js\n// load and setup phantomjs-test-provisions\nvar testprovisions = require(\"./../node_modules/phantomjs-test-provisions\");\nvar jasmine = testprovisions.jasmine;\nvar jasmineConsoleReporter = testprovisions.jasmineConsoleReporter;\nvar chai = testprovisions.chai;\nvar should = chai.should();\nvar it = jasmine.it;\nvar describe = jasmine.describe;\n\n/* Remember to setup the module if it's expected to be available later. It\ncould also be required() inside each individual test. */\nvar mymodule = require(\"./../../mymodule\")\n\n// include the custom test files here\nphantom.injectJs(\"./test-sample.js\");\n\n// launch the tests\nvar jasmineEnv = testprovisions.configureJasmine();\njasmineEnv.execute();\n```\n\nThen write tests in `tests/test-sample.js` like:\n\n``` js\ndescribe(\"phantomjs-test-provisions example test\", function() {\n    it(\"should exist\", function() {\n        should.exist(mymodule);\n    });\n});\n```\n\n# license\n\nBSD\n","_id":"phantomjs-test-provisions@0.0.2","dist":{"shasum":"6cf781d0e65471f09f62c799cc61e59ffe55c09f","tarball":"https://registry.npmjs.org/phantomjs-test-provisions/-/phantomjs-test-provisions-0.0.2.tgz","integrity":"sha512-tDyyWTv9kvpJpOPD0Yy250EcfgnF9l8VQOdZ3y74hG99ryqfdkC2ic8WhqY01FfAv2JgwuvtpKYrtCKrjWng+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUo4exGAynKIZWbYpA+g6OmO0oNOEMl7HpVm6c9SsDpAiAI9B8SHIIvZVCJfne+esDpok3L14HDTLRZI17tNKSE5Q=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"kanzure","email":"kanzure@gmail.com"},"maintainers":[{"name":"kanzure","email":"kanzure@gmail.com"}],"directories":{}},"0.0.3":{"name":"phantomjs-test-provisions","description":"Testing for PhantomJS scripts.","readmeFilename":"README.md","version":"0.0.3","homepage":"https://github.com/kanzure/phantomjs-test-provisions","author":{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"},"repository":{"type":"git","url":"https://github.com/kanzure/phantomjs-test-provisions"},"bugs":{"url":"https://github.com/kanzure/phantomjs-test-provisions/issues","email":"kanzure@gmail.com"},"license":"BSD","keywords":["phantomjs","testing","test","unit testing","BDD","TDD","jasmine"],"engines":{"phantomjs":">=0.9.0"},"scripts":{"test":"/usr/bin/env phantomjs tests/run-tests.js"},"devDependencies":{},"dependencies":{"chai":"~1.5.0","jasmine-standalone":">=1.3.1","grunt":"~0.4.0","grunt-exec":">=0.4.0"},"optionalDependencies":{"grunt":"~0.4.0","grunt-exec":">=0.4.0"},"main":"./src/main.js","contributors":[{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"}],"readme":"# phantomjs-test-provisions\n\n[PhantomJS](http://phantomjs.org/) unit testing module installable through npm.\nMakes your PhantomJS javascript spaghetti testable, reusable and maybe even\nproduction-ready.\n\nNote that PhantomJS must be installed. It is not a directly stated dependency\nbecause many developers choose to install phantomjs separately (outside of\nnode/npm), and an explicit dependency on PhantomJS would entail downloading an\nadditional copy of the PhantomJS binary.\n\nphantomjs-test-provisions uses a standalone version of Jasmine. This package is\nlargely based off of code in the upstream PhantomJS repository. As a separate\nnode module, it could be a quick option for developers interested in adding\ntesting to their PhantomJS outer context (JavaScriptCore environment).\n\n# install\n\nWith [npm](http://npmjs.org/) do:\n\n``` bash\nnpm install phantomjs-test-provisions\n```\n\n# usage\n\nThere is a default example which can run immediately:\n\n``` bash\nnpm test\n```\n\nAlso there is an example using grunt (see `Gruntfile.js`):\n\n``` bash\ngrunt test\n```\n\nTo add tests to a separate PhantomJS module, add a `tests/run-tests.js` that looks like this:\n\n``` js\n// load and setup phantomjs-test-provisions\nvar testprovisions = require(\"./../node_modules/phantomjs-test-provisions\");\nvar jasmine = testprovisions.jasmine;\nvar jasmineConsoleReporter = testprovisions.jasmineConsoleReporter;\nvar chai = testprovisions.chai;\nvar should = chai.should();\nvar it = jasmine.it;\nvar describe = jasmine.describe;\n\n/* Remember to setup the module if it's expected to be available later. It\ncould also be required() inside each individual test. */\nvar mymodule = require(\"./../../mymodule\")\n\n// include the custom test files here\nphantom.injectJs(\"./test-sample.js\");\n\n// launch the tests\nvar jasmineEnv = testprovisions.configureJasmine();\njasmineEnv.execute();\n```\n\nThen write tests in `tests/test-sample.js` like:\n\n``` js\ndescribe(\"phantomjs-test-provisions example test\", function() {\n    it(\"should exist\", function() {\n        should.exist(mymodule);\n    });\n});\n```\n\n# license\n\nBSD\n","_id":"phantomjs-test-provisions@0.0.3","dist":{"shasum":"e1541603d874c95778c5989f7e7cee74fd66213d","tarball":"https://registry.npmjs.org/phantomjs-test-provisions/-/phantomjs-test-provisions-0.0.3.tgz","integrity":"sha512-9ExIb7bzaU32J10/7nofzifbb/v90R7+2avcMcMBEIU/ff4KwE1eH9pcK2W7cfz9HzMhaLCTejwh8dBGEHWjPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBYcX3uqHTNHxjjJk8iirqCYILrC77FZbkUCWtX5OGnpAiBBR710F7vFmWZ3uvZ+uh5HEeEaYrAhMs7yC1LutpNPfA=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"kanzure","email":"kanzure@gmail.com"},"maintainers":[{"name":"kanzure","email":"kanzure@gmail.com"}]},"0.0.4":{"name":"phantomjs-test-provisions","description":"Testing for PhantomJS scripts.","readmeFilename":"README.md","version":"0.0.4","homepage":"https://github.com/kanzure/phantomjs-test-provisions","author":{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"},"repository":{"type":"git","url":"https://github.com/kanzure/phantomjs-test-provisions"},"bugs":{"url":"https://github.com/kanzure/phantomjs-test-provisions/issues","email":"kanzure@gmail.com"},"license":"BSD","keywords":["phantomjs","testing","test","unit testing","BDD","TDD","jasmine"],"engines":{"phantomjs":">=0.9.0"},"scripts":{"test":"/usr/bin/env phantomjs tests/run-tests.js"},"devDependencies":{},"dependencies":{"chai":"~1.5.0","jasmine-standalone":">=1.3.1","grunt":"~0.4.0","grunt-exec":">=0.4.0"},"optionalDependencies":{"grunt":"~0.4.0","grunt-exec":">=0.4.0"},"main":"./src/main.js","contributors":[{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"}],"readme":"# phantomjs-test-provisions\n\n[PhantomJS](http://phantomjs.org/) unit testing module installable through npm.\nMakes your PhantomJS javascript spaghetti testable, reusable and maybe even\nproduction-ready.\n\nNote that PhantomJS must be installed. It is not a directly stated dependency\nbecause many developers choose to install phantomjs separately (outside of\nnode/npm), and an explicit dependency on PhantomJS would entail downloading an\nadditional copy of the PhantomJS binary.\n\nphantomjs-test-provisions uses a standalone version of Jasmine. This package is\nlargely based off of code in the upstream PhantomJS repository. As a separate\nnode module, it could be a quick option for developers interested in adding\ntesting to their PhantomJS outer context (JavaScriptCore environment).\n\n# install\n\nWith [npm](http://npmjs.org/) do:\n\n``` bash\nnpm install phantomjs-test-provisions\n```\n\n# usage\n\nThere is a default example which can run immediately:\n\n``` bash\nnpm test\n```\n\nAlso there is an example using grunt (see `Gruntfile.js`):\n\n``` bash\ngrunt test\n```\n\nTo add tests to a separate PhantomJS module, add a `tests/run-tests.js` that looks like this:\n\n``` js\n// load and setup phantomjs-test-provisions\nvar testprovisions = require(\"./../node_modules/phantomjs-test-provisions\");\nvar jasmine = testprovisions.jasmine;\nvar jasmineConsoleReporter = testprovisions.jasmineConsoleReporter;\nvar chai = testprovisions.chai;\nvar should = chai.should();\nvar it = jasmine.it;\nvar describe = jasmine.describe;\n\n/*\nRemember to setup the module if it's expected to be available later. It\ncould also be required() inside each individual test.\n\nAlso usable here:\n    ./../main.js\n    ./../main\n    ./../../packagename\n*/\nvar mymodule = require(\"./../../mymodule\")\n\n// include the custom test files here\nphantom.injectJs(\"./test-sample.js\");\n\n// launch the tests\nvar jasmineEnv = testprovisions.configureJasmine();\njasmineEnv.execute();\n```\n\nThen write tests in `tests/test-sample.js` like:\n\n``` js\ndescribe(\"phantomjs-test-provisions example test\", function() {\n    it(\"should exist\", function() {\n        should.exist(mymodule);\n    });\n});\n```\n\n# TODO\n\n* script in `bin/` so developers can avoid `tests/run-tests.js`\n\n# license\n\nBSD\n","_id":"phantomjs-test-provisions@0.0.4","dist":{"shasum":"1aecd543ec08dd4e137546cec9d97440755e4fa9","tarball":"https://registry.npmjs.org/phantomjs-test-provisions/-/phantomjs-test-provisions-0.0.4.tgz","integrity":"sha512-i8IYFnGgCtWR0r875tfnJeZItFnMgy2siXgIeJXfIAPjryqCTH7I7URtKEbFhJCfx442W6I3EYqsP57OCb2BFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvMiw0CDR5J2DXh/zRoVbo3LBuWiFGucIQvixVNXDOJQIhAKwS14sXdNsdbHs16+zYS9Es3MjWDvxDfTIAr+8xPNqT"}]},"_npmVersion":"1.1.69","_npmUser":{"name":"kanzure","email":"kanzure@gmail.com"},"maintainers":[{"name":"kanzure","email":"kanzure@gmail.com"}]},"0.0.5":{"name":"phantomjs-test-provisions","description":"Testing for PhantomJS scripts.","readmeFilename":"README.md","version":"0.0.5","homepage":"https://github.com/kanzure/phantomjs-test-provisions","author":{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"},"repository":{"type":"git","url":"https://github.com/kanzure/phantomjs-test-provisions"},"bugs":{"url":"https://github.com/kanzure/phantomjs-test-provisions/issues","email":"kanzure@gmail.com"},"license":"BSD","keywords":["phantomjs","testing","test","unit testing","BDD","TDD","jasmine"],"engines":{"phantomjs":">=0.9.0"},"scripts":{"test":"./bin/phantomjs-test"},"bin":{"phantomjs-test":"./bin/phantomjs-test"},"devDependencies":{},"dependencies":{"chai":"~1.5.0","jasmine-standalone":">=1.3.1","grunt":"~0.4.0","grunt-exec":">=0.4.0"},"optionalDependencies":{"grunt":"~0.4.0","grunt-exec":">=0.4.0"},"main":"./src/main.js","contributors":[{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"}],"readme":"# phantomjs-test-provisions\n\n[PhantomJS](http://phantomjs.org/) unit testing module installable through npm.\nMakes your PhantomJS javascript spaghetti testable, reusable and maybe even\nproduction-ready.\n\nNote that PhantomJS must be installed. It is not a directly stated dependency\nbecause many developers choose to install phantomjs separately (outside of\nnode/npm), and an explicit dependency on PhantomJS would entail downloading an\nadditional copy of the PhantomJS binary.\n\nphantomjs-test-provisions uses a standalone version of Jasmine. This package is\nlargely based off of code in the upstream PhantomJS repository. As a separate\nnode module, it could be a quick option for developers interested in adding\ntesting to their PhantomJS outer context (JavaScriptCore environment).\n\n# install\n\nWith [npm](http://npmjs.org/) do:\n\n``` bash\nnpm install phantomjs-test-provisions\n```\n\nThis adds unit testing to PhantomJS modules.\n\n# usage\n\nWrite tests in `tests/spectacles.js` like this:\n\n``` js\ndescribe(\"phantomjs-test-provisions example test\", function() {\n    mymodule = require(\"./../../mymodule\");\n\n    it(\"should exist\", function() {\n        should.exist(mymodule);\n    });\n});\n```\n\nThen run tests like this (if it was installed with `-g` when calling `npm install`):\n\n``` bash\nphantomjs-test\n```\n\nUsing a local binary is also possible and it could be added to a `Gruntfile` or `package.json` like so:\n\n``` bash\n./node_modules/phantomjs-test-provision/bin/phantomjs-test\n```\n\n# who tests the testers\n\nThere is also default example which can run immediately for this project:\n\n``` bash\nnpm test\n```\n\nAlso there is an example using grunt (see `Gruntfile.js`):\n\n``` bash\ngrunt test\n```\n\n# license\n\nBSD\n","_id":"phantomjs-test-provisions@0.0.5","dist":{"shasum":"f2e9ac565a6f3ad1c5f3613b617e6660795c139e","tarball":"https://registry.npmjs.org/phantomjs-test-provisions/-/phantomjs-test-provisions-0.0.5.tgz","integrity":"sha512-ZPlBXv5fz8RC8oMunrKSrjJkCgUjlyICbZEKTibS3km3kDJC+3rZv8ZjW329p1VXr4TpRX3T3DlMWUfYAd4MDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICQC3lVsfQ8yS7xWwnRAmRC6tnBj0hJPDsm9kPwQM5ioAiEAierTx7F0rZhaL8pHOCCDCl5VWuDPUg9X+rHeKSrWiDM="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"kanzure","email":"kanzure@gmail.com"},"maintainers":[{"name":"kanzure","email":"kanzure@gmail.com"}]},"0.0.6":{"name":"phantomjs-test-provisions","description":"Testing for PhantomJS scripts.","readmeFilename":"README.md","version":"0.0.6","homepage":"https://github.com/kanzure/phantomjs-test-provisions","author":{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"},"repository":{"type":"git","url":"https://github.com/kanzure/phantomjs-test-provisions"},"bugs":{"url":"https://github.com/kanzure/phantomjs-test-provisions/issues","email":"kanzure@gmail.com"},"license":"BSD","keywords":["phantomjs","testing","test","unit testing","BDD","TDD","jasmine"],"engines":{"phantomjs":">=0.9.0"},"scripts":{"test":"./bin/phantomjs-test"},"bin":{"phantomjs-test":"./bin/phantomjs-test"},"devDependencies":{},"dependencies":{"chai":"~1.5.0","jasmine-standalone":">=1.3.1","grunt":"~0.4.0","grunt-exec":">=0.4.0"},"optionalDependencies":{"grunt":"~0.4.0","grunt-exec":">=0.4.0"},"main":"./src/main.js","contributors":[{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"}],"readme":"# phantomjs-test-provisions\n\n[PhantomJS](http://phantomjs.org/) unit testing module installable through npm.\nMakes your PhantomJS javascript spaghetti testable, reusable and maybe even\nproduction-ready.\n\nNote that PhantomJS must be installed. It is not a directly stated dependency\nbecause many developers choose to install phantomjs separately (outside of\nnode/npm), and an explicit dependency on PhantomJS would entail downloading an\nadditional copy of the PhantomJS binary.\n\nphantomjs-test-provisions uses a standalone version of Jasmine. This package is\nlargely based off of code in the upstream PhantomJS repository. As a separate\nnode module, it could be a quick option for developers interested in adding\ntesting to their PhantomJS outer context (JavaScriptCore environment).\n\n# install\n\nWith [npm](http://npmjs.org/) do:\n\n``` bash\nnpm install phantomjs-test-provisions\n```\n\nThis adds unit testing to PhantomJS modules.\n\n# usage\n\nWrite tests in `tests/spectacles.js` like this:\n\n``` js\ndescribe(\"phantomjs-test-provisions example test\", function() {\n    mymodule = require(\"./../../mymodule\");\n\n    it(\"should exist\", function() {\n        should.exist(mymodule);\n    });\n});\n```\n\nThen run tests like this (if it was installed with `-g` when calling `npm install`):\n\n``` bash\nphantomjs-test\n```\n\nUsing a local binary is also possible and it could be added to a `Gruntfile` or `package.json` like so:\n\n``` bash\n./node_modules/phantomjs-test-provision/bin/phantomjs-test\n```\n\n# who tests the testers\n\nThere is also default example which can run immediately for this project:\n\n``` bash\nnpm test\n```\n\nAlso there is an example using grunt (see `Gruntfile.js`):\n\n``` bash\ngrunt test\n```\n\n# license\n\nBSD\n","_id":"phantomjs-test-provisions@0.0.6","dist":{"shasum":"8301711dc66b6157a5e32df932b2c04e942a57ef","tarball":"https://registry.npmjs.org/phantomjs-test-provisions/-/phantomjs-test-provisions-0.0.6.tgz","integrity":"sha512-h4dJrN2O//GwmirraDRFf5z/UwMWCD5D9QbkrIrzQ0DD+WG81ERP1aREmX+wxigajY4d5+B/A2o4p8plf3IkKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFkU3xfNhkNwMPnHnOV/hCteJ1/qLFPxBd53bvgKMH4LAiAhnE321FyhpA5utwwEjzW0HM7+3zqeIZKFEeGKglnJzw=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"kanzure","email":"kanzure@gmail.com"},"maintainers":[{"name":"kanzure","email":"kanzure@gmail.com"}]},"0.0.7":{"name":"phantomjs-test-provisions","description":"Testing for PhantomJS scripts.","readmeFilename":"README.md","version":"0.0.7","homepage":"https://github.com/kanzure/phantomjs-test-provisions","author":{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"},"repository":{"type":"git","url":"https://github.com/kanzure/phantomjs-test-provisions"},"bugs":{"url":"https://github.com/kanzure/phantomjs-test-provisions/issues","email":"kanzure@gmail.com"},"license":"BSD","keywords":["phantomjs","testing","test","unit testing","BDD","TDD","jasmine"],"engines":{"phantomjs":">=0.9.0"},"scripts":{"test":"./bin/phantomjs-test"},"bin":{"phantomjs-test":"./bin/phantomjs-test"},"devDependencies":{},"dependencies":{"chai":"~1.5.0","jasmine-standalone":">=1.3.1","grunt":"~0.4.0","grunt-exec":">=0.4.0"},"optionalDependencies":{"grunt":"~0.4.0","grunt-exec":">=0.4.0"},"main":"./src/main.js","contributors":[{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"}],"readme":"# phantomjs-test-provisions\n\n[PhantomJS](http://phantomjs.org/) unit testing module installable through npm.\n\nMakes your PhantomJS javascript spaghetti testable, reusable and maybe even\nproduction-ready.\n\nphantomjs-test-provisions uses a standalone version of Jasmine. This package is\nlargely based off of code in the upstream PhantomJS repository. As a separate\nnode module, it's a quick option for developers interested in adding testing to\ntheir PhantomJS outer context (JavaScriptCore environment).\n\n# phantomjs\n\nNote that PhantomJS must be installed and available in `$PATH`.\n\n# install\n\nWith [npm](http://npmjs.org/) do:\n\n``` bash\nnpm install phantomjs-test-provisions\n```\n\nThis adds unit testing to PhantomJS modules.\n\n# usage\n\nWrite tests in `tests/spectacles.js` like this:\n\n``` js\nexports.run = function() {\n    describe(\"phantomjs-test-provisions example test\", function() {\n        var mymodule = require(\"./../../mymodule\");\n\n        it(\"should exist\", function() {\n            should.exist(mymodule);\n        });\n    });\n}\n```\n\nThen run tests like this (if it was installed through `npm install -g`):\n\n``` bash\nphantomjs-test\n```\n\nUsing the script through a relative path is also possible and it could be added to a `Gruntfile` or `package.json` like so:\n\n``` bash\n./node_modules/phantomjs-test-provision/bin/phantomjs-test\n```\n\n# who tests the testers?\n\nThere is also a default example which can run immediately for this project:\n\n``` bash\nnpm test\n```\n\nAlso there is an example using grunt (see `Gruntfile.js`):\n\n``` bash\ngrunt test\n```\n\nor even:\n\n``` bash\n./bin/phantomjs-test\n```\n\n# license\n\nBSD\n","_id":"phantomjs-test-provisions@0.0.7","dist":{"shasum":"4e29982a67059d86ea777cb3f03c974c1e9bd949","tarball":"https://registry.npmjs.org/phantomjs-test-provisions/-/phantomjs-test-provisions-0.0.7.tgz","integrity":"sha512-ReGlGo5wr9FR6q8WA8PrNTXeR6cFoX7/1MPTBtQiQ3+aRumTOFfaQpkamG9zOSWpKOzYXyYyT2oPC2hYGO5/rQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0OTMEiNA7F8ULOiO+lRwpF68iKIekqVs82LaKPiunsgIhAMA5X4gIEcITxGqWzkECwDfasruD9Hb00+EGfskL6lnd"}]},"_npmVersion":"1.1.69","_npmUser":{"name":"kanzure","email":"kanzure@gmail.com"},"maintainers":[{"name":"kanzure","email":"kanzure@gmail.com"}]},"0.0.8":{"name":"phantomjs-test-provisions","description":"Testing for PhantomJS scripts.","readmeFilename":"README.md","version":"0.0.8","homepage":"https://github.com/kanzure/phantomjs-test-provisions","author":{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"},"repository":{"type":"git","url":"https://github.com/kanzure/phantomjs-test-provisions"},"bugs":{"url":"https://github.com/kanzure/phantomjs-test-provisions/issues","email":"kanzure@gmail.com"},"license":"BSD","keywords":["phantomjs","testing","test","unit testing","BDD","TDD","jasmine"],"engines":{"phantomjs":">=0.9.0"},"scripts":{"test":"./bin/phantomjs-test"},"bin":{"phantomjs-test":"./bin/phantomjs-test"},"devDependencies":{},"dependencies":{"chai":"~1.5.0","jasmine-standalone":">=1.3.1","grunt":"~0.4.0","grunt-exec":">=0.4.0"},"optionalDependencies":{"grunt":"~0.4.0","grunt-exec":">=0.4.0"},"main":"./src/main.js","contributors":[{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"}],"readme":"# phantomjs-test-provisions\n\n[PhantomJS](http://phantomjs.org/) unit testing module installable through npm.\n\nMakes your PhantomJS javascript spaghetti testable, reusable and maybe even\nproduction-ready.\n\nphantomjs-test-provisions uses a standalone version of Jasmine. This package is\nlargely based off of code in the upstream PhantomJS repository. As a separate\nnode module, it's a quick option for developers interested in adding testing to\ntheir PhantomJS outer context (JavaScriptCore environment).\n\n# phantomjs\n\nNote that PhantomJS must be installed. It must be available in `$PATH`.\n\n# install\n\nWith [npm](http://npmjs.org/) do:\n\n```\nnpm install phantomjs-test-provisions\n```\n\nThis adds unit testing to PhantomJS modules. To make use of the global script,\nuse:\n\n```\nnpm install -g phantomjs-test-provisions\n```\n\n# usage\n\nWrite tests in `tests/spectacles.js` like this:\n\n``` js\nexports.run = function() {\n    describe(\"phantomjs-test-provisions example test\", function() {\n        var mymodule = require(\"./../../mymodule\");\n\n        it(\"should exist\", function() {\n            should.exist(mymodule);\n        });\n    });\n}\n```\n\nThen run tests like this (if it was installed through `npm install -g`):\n\n```\nphantomjs-test\n```\n\nUsing the script through a relative path is also possible and it could be added\nto a `Gruntfile` or `package.json` like so:\n\n```\n./node_modules/phantomjs-test-provisions/bin/phantomjs-test\n```\n\n# writing tests\n\nThere are multiple styles available, provided by [Chai](http://chaijs.com/)\nincluding [assert](http://chaijs.com/api/assert/) and\n[expect/should](http://chaijs.com/api/bdd/).\n\n# who tests the testers?\n\nThere is also a default example which can run immediately for this project:\n\n```\nnpm test\n```\n\nAlso there is an example using grunt (see `Gruntfile.js`):\n\n```\ngrunt test\n```\n\nor even:\n\n```\n./bin/phantomjs-test\n```\n\n# license\n\nBSD\n","_id":"phantomjs-test-provisions@0.0.8","dist":{"shasum":"e8111668724d356763760e80d39573dbfcb3f057","tarball":"https://registry.npmjs.org/phantomjs-test-provisions/-/phantomjs-test-provisions-0.0.8.tgz","integrity":"sha512-H08F9T2SPLEjOetyHTR94/rJx/ekGL8htElfMjAdhp6EwesHZcXSXk4soUvItc+R4W1yXV5+6dwYTPUVGax3tg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWLbTGPbcSZxVtG5oKFvbnlJYJ4DNq0itNwRh0a1lyVwIhAMQswhEHiCRw6RLN7tIScfvUdxF2bN5OTvEd5p4WvrXi"}]},"_npmVersion":"1.1.69","_npmUser":{"name":"kanzure","email":"kanzure@gmail.com"},"maintainers":[{"name":"kanzure","email":"kanzure@gmail.com"}]},"0.0.9":{"name":"phantomjs-test-provisions","description":"Testing for PhantomJS scripts.","readmeFilename":"README.md","version":"0.0.9","homepage":"https://github.com/kanzure/phantomjs-test-provisions","author":{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"},"repository":{"type":"git","url":"https://github.com/kanzure/phantomjs-test-provisions"},"bugs":{"url":"https://github.com/kanzure/phantomjs-test-provisions/issues","email":"kanzure@gmail.com"},"license":"BSD","keywords":["phantomjs","testing","test","unit testing","BDD","TDD","jasmine"],"engines":{"phantomjs":">=0.9.0"},"scripts":{"test":"./bin/phantomjs-test"},"bin":{"phantomjs-test":"./bin/phantomjs-test"},"devDependencies":{},"dependencies":{"chai":"~1.5.0","jasmine-standalone":">=1.3.1","grunt":"~0.4.0","grunt-exec":">=0.4.0"},"optionalDependencies":{"grunt":"~0.4.0","grunt-exec":">=0.4.0"},"main":"./src/main.js","contributors":[{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"}],"readme":"# phantomjs-test-provisions\n\n[PhantomJS](http://phantomjs.org/) unit testing module installable through npm.\n\nMakes your PhantomJS javascript spaghetti testable, reusable and maybe even\nproduction-ready.\n\nphantomjs-test-provisions uses a standalone version of Jasmine. This package is\nlargely based off of code in the upstream PhantomJS repository. As a separate\nnode module, it's a quick option for developers interested in adding testing to\ntheir PhantomJS outer context (JavaScriptCore environment).\n\n# phantomjs\n\nNote that PhantomJS must be installed. It must be available in `$PATH`.\n\n# install\n\nWith [npm](http://npmjs.org/) do:\n\n```\nnpm install phantomjs-test-provisions\n```\n\nThis adds unit testing to PhantomJS modules. To make use of the global script,\nuse:\n\n```\nnpm install -g phantomjs-test-provisions\n```\n\n# usage\n\nWrite tests in `tests/spectacles.js` like this:\n\n``` js\nexports.run = function() {\n    describe(\"phantomjs-test-provisions example test\", function() {\n        var mymodule = require(\"./../../mymodule\");\n\n        it(\"should exist\", function() {\n            should.exist(mymodule);\n        });\n    });\n}\n```\n\nThen run tests like this (if it was installed through `npm install -g`):\n\n```\nphantomjs-test\n```\n\nUsing the script through a relative path is also possible and it could be added\nto a `Gruntfile` or `package.json` like so:\n\n```\n./node_modules/phantomjs-test-provisions/bin/phantomjs-test\n```\n\n# writing tests\n\nThere are multiple styles available, provided by [Chai](http://chaijs.com/)\nincluding [assert](http://chaijs.com/api/assert/) and\n[expect/should](http://chaijs.com/api/bdd/).\n\n# who tests the testers?\n\nThere is also a default example which can run immediately for this project:\n\n```\nnpm test\n```\n\nAlso there is an example using grunt (see `Gruntfile.js`):\n\n```\ngrunt test\n```\n\nor even:\n\n```\n./bin/phantomjs-test\n```\n\n# license\n\nBSD\n","_id":"phantomjs-test-provisions@0.0.9","dist":{"shasum":"77986a9741845ffa1a54618dc9925549159995b8","tarball":"https://registry.npmjs.org/phantomjs-test-provisions/-/phantomjs-test-provisions-0.0.9.tgz","integrity":"sha512-VXZ35OqKLPxiM8BsE6AMK9M3KSd97BdukTTTBgnw41uHIut66jmcLbiYAXci/h+1O2hSOP2ZoCRkFtvEVZ7MlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBsAafhvbfuc50AcNJ6/VuZ5Ou4r72T8OMsB+sQMr5xdAiEAxNyRArN3lBSz8nufmTzkz2g24cR94HE5nx5wDBdZ4TY="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"kanzure","email":"kanzure@gmail.com"},"maintainers":[{"name":"kanzure","email":"kanzure@gmail.com"}]},"0.0.10":{"name":"phantomjs-test-provisions","description":"Testing for PhantomJS scripts.","readmeFilename":"README.md","version":"0.0.10","homepage":"https://github.com/kanzure/phantomjs-test-provisions","author":{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"},"repository":{"type":"git","url":"https://github.com/kanzure/phantomjs-test-provisions"},"bugs":{"url":"https://github.com/kanzure/phantomjs-test-provisions/issues","email":"kanzure@gmail.com"},"license":"BSD","keywords":["phantomjs","testing","test","unit testing","BDD","TDD","jasmine"],"engines":{"phantomjs":">=0.9.0"},"scripts":{"test":"./bin/phantomjs-test"},"bin":{"phantomjs-test":"./bin/phantomjs-test"},"devDependencies":{},"dependencies":{"chai":"~1.5.0","jasmine-standalone":">=1.3.1","grunt":"~0.4.0","grunt-exec":">=0.4.0"},"optionalDependencies":{"grunt":"~0.4.0","grunt-exec":">=0.4.0"},"main":"./src/main.js","contributors":[{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"}],"readme":"# phantomjs-test-provisions\n\n[PhantomJS](http://phantomjs.org/) unit testing module installable through npm.\n\nMakes your PhantomJS javascript spaghetti testable, reusable and maybe even\nproduction-ready.\n\nphantomjs-test-provisions uses a standalone version of Jasmine. This package is\nlargely based off of code in the upstream PhantomJS repository. As a separate\nnode module, it's a quick option for developers interested in adding testing to\ntheir PhantomJS outer context (JavaScriptCore environment).\n\n# phantomjs\n\nNote that PhantomJS must be installed. It must be available in `$PATH`.\n\n# install\n\nWith [npm](http://npmjs.org/) do:\n\n```\nnpm install phantomjs-test-provisions\n```\n\nThis adds unit testing to PhantomJS modules. To make use of the global script,\nuse:\n\n```\nnpm install -g phantomjs-test-provisions\n```\n\n# usage\n\nWrite tests in `tests/spectacles.js` like this:\n\n``` js\nexports.run = function() {\n    describe(\"phantomjs-test-provisions example test\", function() {\n        var mymodule = require(\"./../../mymodule\");\n\n        it(\"should exist\", function() {\n            should.exist(mymodule);\n        });\n    });\n}\n```\n\nThen run tests like this (if it was installed through `npm install -g`):\n\n```\nphantomjs-test\n```\n\nUsing the script through a relative path is also possible and it could be added\nto a `Gruntfile` or `package.json` like so:\n\n```\n./node_modules/phantomjs-test-provisions/bin/phantomjs-test\n```\n\n# writing tests\n\nThere are multiple styles available, provided by [Chai](http://chaijs.com/)\nincluding [assert](http://chaijs.com/api/assert/) and\n[expect/should](http://chaijs.com/api/bdd/).\n\n# who tests the testers?\n\nThere is also a default example which can run immediately for this project:\n\n```\nnpm test\n```\n\nAlso there is an example using grunt (see `Gruntfile.js`):\n\n```\ngrunt test\n```\n\nor even:\n\n```\n./bin/phantomjs-test\n```\n\n# license\n\nBSD\n","_id":"phantomjs-test-provisions@0.0.10","dist":{"shasum":"66aeb69504994a5f1d704be1c00da3e3b199d165","tarball":"https://registry.npmjs.org/phantomjs-test-provisions/-/phantomjs-test-provisions-0.0.10.tgz","integrity":"sha512-zDJ+Zm1zCOnGgTH/aZsALnYMuZjhNXAeMLg2LwHXYadgYYkPCVCkOiHCYLRY5wXnMG3ai+mQ6l0qMY5HhMRERQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICyJSmJ/Nxp1op1njOphww4OZlKfRwmKlsDgMCqqnHA8AiA/VC4orzjvVzXtzG+B/52Su9CNOShFiAyUERjrqG1Sig=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"kanzure","email":"kanzure@gmail.com"},"maintainers":[{"name":"kanzure","email":"kanzure@gmail.com"}]},"0.0.11":{"name":"phantomjs-test-provisions","description":"Testing for PhantomJS scripts.","readmeFilename":"README.md","version":"0.0.11","homepage":"https://github.com/kanzure/phantomjs-test-provisions","author":{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"},"repository":{"type":"git","url":"https://github.com/kanzure/phantomjs-test-provisions"},"bugs":{"url":"https://github.com/kanzure/phantomjs-test-provisions/issues","email":"kanzure@gmail.com"},"license":"BSD","keywords":["phantomjs","testing","test","unit testing","BDD","TDD","jasmine"],"engines":{"phantomjs":">=0.9.0"},"scripts":{"test":"./bin/phantomjs-test"},"bin":{"phantomjs-test":"./bin/phantomjs-test"},"devDependencies":{},"dependencies":{"chai":"~1.5.0","jasmine-standalone":">=1.3.1","grunt":"~0.4.0","grunt-exec":">=0.4.0"},"optionalDependencies":{"grunt":"~0.4.0","grunt-exec":">=0.4.0"},"main":"./src/main.js","contributors":[{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"}],"readme":"# phantomjs-test-provisions\n\n[PhantomJS](http://phantomjs.org/) unit testing module installable through npm.\n\nMakes your PhantomJS javascript spaghetti testable, reusable and maybe even\nproduction-ready.\n\nphantomjs-test-provisions uses a standalone version of Jasmine. This package is\nlargely based off of code in the upstream PhantomJS repository. As a separate\nnode module, it's a quick option for developers interested in adding testing to\ntheir PhantomJS outer context (JavaScriptCore environment).\n\n# phantomjs\n\nNote that PhantomJS must be installed. It must be available in `$PATH`.\n\n# install\n\nWith [npm](http://npmjs.org/) do:\n\n```\nnpm install phantomjs-test-provisions\n```\n\nThis adds unit testing to PhantomJS modules. To make use of the global script,\nuse:\n\n```\nnpm install -g phantomjs-test-provisions\n```\n\n# usage\n\nWrite tests in `tests/spectacles.js` like this:\n\n``` js\nexports.run = function() {\n    describe(\"phantomjs-test-provisions example test\", function() {\n        var mymodule = require(\"./../../mymodule\");\n\n        it(\"should exist\", function() {\n            should.exist(mymodule);\n        });\n    });\n}\n```\n\nThen run tests like this (if it was installed through `npm install -g`):\n\n```\nphantomjs-test\n```\n\nUsing the script through a relative path is also possible and it could be added\nto a `Gruntfile` or `package.json` like so:\n\n```\n./node_modules/phantomjs-test-provisions/bin/phantomjs-test\n```\n\n# writing tests\n\nThere are multiple styles available, provided by [Chai](http://chaijs.com/)\nincluding [assert](http://chaijs.com/api/assert/) and\n[expect/should](http://chaijs.com/api/bdd/).\n\n# who tests the testers?\n\nThere is also a default example which can run immediately for this project:\n\n```\nnpm test\n```\n\nAlso there is an example using grunt (see `Gruntfile.js`):\n\n```\ngrunt test\n```\n\nor even:\n\n```\n./bin/phantomjs-test\n```\n\n# license\n\nBSD\n","_id":"phantomjs-test-provisions@0.0.11","dist":{"shasum":"7661e85451e798140cd346a851591bbcd2ef229e","tarball":"https://registry.npmjs.org/phantomjs-test-provisions/-/phantomjs-test-provisions-0.0.11.tgz","integrity":"sha512-Bl4qA72VescbOvS5I95HPQT1rSmv/I2ruLL0R3K1dAxsY69sOD8TMZo2rrt0XNtO7o+XmELSRJaPkXEUMt/w9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF6BjSj9mGGcgjO86wnBbhdESFkMHgqhsYBlZxUi8T1aAiEA+J+jJ67GekgYKqLeExDLYPTNyEv6Cy1U6Zk7it0rvG8="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"kanzure","email":"kanzure@gmail.com"},"maintainers":[{"name":"kanzure","email":"kanzure@gmail.com"}]},"0.0.12":{"name":"phantomjs-test-provisions","description":"Testing for PhantomJS scripts.","readmeFilename":"README.md","version":"0.0.12","homepage":"https://github.com/kanzure/phantomjs-test-provisions","author":{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"},"repository":{"type":"git","url":"https://github.com/kanzure/phantomjs-test-provisions"},"bugs":{"url":"https://github.com/kanzure/phantomjs-test-provisions/issues","email":"kanzure@gmail.com"},"license":"BSD","keywords":["phantomjs","testing","test","unit testing","BDD","TDD","jasmine"],"engines":{"phantomjs":">=0.9.0"},"scripts":{"test":"./bin/phantomjs-test"},"bin":{"phantomjs-test":"./bin/phantomjs-test"},"devDependencies":{},"dependencies":{"chai":"~1.5.0","jasmine-standalone":">=1.3.1","grunt":"~0.4.0","grunt-exec":">=0.4.0"},"optionalDependencies":{"grunt":"~0.4.0","grunt-exec":">=0.4.0"},"main":"./src/main.js","contributors":[{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"}],"readme":"# phantomjs-test-provisions\n\n[PhantomJS](http://phantomjs.org/) unit testing module installable through npm.\n\nMakes your PhantomJS javascript spaghetti testable, reusable and maybe even\nproduction-ready.\n\nphantomjs-test-provisions uses a standalone version of Jasmine. This package is\nlargely based off of code in the upstream PhantomJS repository. As a separate\nnode module, it's a quick option for developers interested in adding testing to\ntheir PhantomJS outer context (JavaScriptCore environment).\n\n# phantomjs\n\nNote that PhantomJS must be installed. It must be available in `$PATH`.\n\n# install\n\nWith [npm](http://npmjs.org/) do:\n\n```\nnpm install phantomjs-test-provisions\n```\n\nThis adds unit testing to PhantomJS modules. To make use of the global script,\nuse:\n\n```\nnpm install -g phantomjs-test-provisions\n```\n\n# usage\n\nWrite tests in `tests/spectacles.js` like this:\n\n``` js\nexports.run = function() {\n    describe(\"phantomjs-test-provisions example test\", function() {\n        var mymodule = require(\"./../../mymodule\");\n\n        it(\"should exist\", function() {\n            should.exist(mymodule);\n        });\n    });\n}\n```\n\nThen run tests like this (if it was installed through `npm install -g`):\n\n```\nphantomjs-test\n```\n\nUsing the script through a relative path is also possible and it could be added\nto a `Gruntfile` or `package.json` like so:\n\n```\n./node_modules/phantomjs-test-provisions/bin/phantomjs-test\n```\n\n# writing tests\n\nThere are multiple styles available, provided by [Chai](http://chaijs.com/)\nincluding [assert](http://chaijs.com/api/assert/) and\n[expect/should](http://chaijs.com/api/bdd/).\n\n# who tests the testers?\n\nThere is also a default example which can run immediately for this project:\n\n```\nnpm test\n```\n\nAlso there is an example using grunt (see `Gruntfile.js`):\n\n```\ngrunt test\n```\n\nor even:\n\n```\n./bin/phantomjs-test\n```\n\n# license\n\nBSD\n","_id":"phantomjs-test-provisions@0.0.12","dist":{"shasum":"d34690fbac30b3f9b0fbf5d2ab8a8f109b705f9b","tarball":"https://registry.npmjs.org/phantomjs-test-provisions/-/phantomjs-test-provisions-0.0.12.tgz","integrity":"sha512-0hfM3r0tD/txtZYLWf7R1hR47faA3gKOkmx+L783Lw8GA8ChSQJ3XdYQFjPhsE+YJp/aGJ+IZQ6NyIhmwPh6ow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGBZjH446QYW58KXvW4JgrwSDDLa+BFt2vIYhTsdsCnSAiEAwjeQ4APNetpR8gJfvli/R95Sj//CxFw5m2TAKrHR8WI="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"kanzure","email":"kanzure@gmail.com"},"maintainers":[{"name":"kanzure","email":"kanzure@gmail.com"}]}},"readme":"# phantomjs-test-provisions\n\n[PhantomJS](http://phantomjs.org/) unit testing module installable through npm.\nMakes your PhantomJS javascript spaghetti testable, reusable and maybe even\nproduction-ready.\n\nNote that PhantomJS must be installed. It is not a directly stated dependency\nbecause many developers choose to install phantomjs separately (outside of\nnode/npm), and an explicit dependency on PhantomJS would entail downloading an\nadditional copy of the PhantomJS binary.\n\nphantomjs-test-provisions uses a standalone version of Jasmine. This package is\nlargely based off of code in the upstream PhantomJS repository. As a separate\nnode module, it could be a quick option for developers interested in adding\ntesting to their PhantomJS outer context (JavaScriptCore environment).\n\n# install\n\nWith [npm](http://npmjs.org/) do:\n\n``` bash\nnpm install phantomjs-test-provisions\n```\n\n# usage\n\nThere is a default example which can run immediately:\n\n``` bash\nnpm test\n```\n\nAlso there is an example using grunt (see `Gruntfile.js`):\n\n``` bash\ngrunt test\n```\n\nTo add tests to a separate PhantomJS module, add a `tests/run-tests.js` that looks like this:\n\n``` js\n// load and setup phantomjs-test-provisions\nvar testprovisions = require(\"./../node_modules/phantomjs-test-provisions\");\nvar jasmine = testprovisions.jasmine;\nvar jasmineConsoleReporter = testprovisions.jasmineConsoleReporter;\nvar chai = testprovisions.chai;\nvar should = chai.should();\nvar it = jasmine.it;\nvar describe = jasmine.describe;\n\n/* Remember to setup the module if it's expected to be available later. It\ncould also be required() inside each individual test. */\nvar mymodule = require(\"./../../mymodule\")\n\n// include the custom test files here\nphantom.injectJs(\"./test-sample.js\");\n\n// launch the tests\nvar jasmineEnv = testprovisions.configureJasmine();\njasmineEnv.execute();\n```\n\nThen write tests in `tests/test-sample.js` like:\n\n``` js\ndescribe(\"phantomjs-test-provisions example test\", function() {\n    it(\"should exist\", function() {\n        should.exist(mymodule);\n    });\n});\n```\n\n# license\n\nBSD\n","maintainers":[{"name":"kanzure","email":"kanzure@gmail.com"}],"time":{"modified":"2022-06-23T20:43:31.024Z","created":"2013-04-21T06:03:46.197Z","0.0.1":"2013-04-21T06:03:47.422Z","0.0.2":"2013-04-21T06:19:47.613Z","0.0.3":"2013-04-21T06:39:19.742Z","0.0.4":"2013-04-21T09:13:04.240Z","0.0.5":"2013-04-21T22:10:00.585Z","0.0.6":"2013-04-21T23:49:16.343Z","0.0.7":"2013-04-22T02:06:14.404Z","0.0.8":"2013-04-22T02:39:15.400Z","0.0.9":"2013-04-22T06:07:53.967Z","0.0.10":"2013-04-25T21:42:03.840Z","0.0.11":"2013-04-25T21:53:39.304Z","0.0.12":"2013-04-27T06:57:28.431Z"},"author":{"name":"Bryan Bishop","email":"kanzure@gmail.com","url":"http://heybryan.org/"},"repository":{"type":"git","url":"https://github.com/kanzure/phantomjs-test-provisions"}}