GitHub user stevengill opened a pull request: https://github.com/apache/cordova-lib/pull/567
CB-12361: Added unit tests for prepare.js <!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### What does this PR do? Add unit tests for prepare.js in prepare.spec.js. ### What testing has been done on this change? npm run cover lists prepare.js at 97.4 ### Checklist - [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database - [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected. - [x] Added automated test coverage as appropriate for this change. You can merge this pull request into a Git repository by running: $ git pull https://github.com/stevengill/cordova-lib prepare-specs Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-lib/pull/567.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #567 ---- commit 418973c718dd804de79dee1577f6dd54d81d537b Author: filmaj <maj....@gmail.com> Date: 2017-06-19T21:04:25Z removed restoring platforms+plugins save.spec from prepare. rewrote structure of prepare unit tests, and included coverage for restoring platforms+plugins. slight changes to prepare.js so it leverages its own helper methods via its own export (helpful for testing). commit 458f08b88b07862dff01dac01feff788771c03fa Author: Steve Gill <stevengil...@gmail.com> Date: 2017-06-20T07:52:57Z CB-12361: added unit tests for prepare.spec.js commit d01b76870e838cec00c273a950a4acf76bcdedf3 Author: Steve Gill <stevengil...@gmail.com> Date: 2017-06-21T18:52:07Z CB-12361: wrapped up prepare.js unit tests ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org