You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/03/10 18:10:05 UTC
git commit: Fix tests broken by recent change to searchpath.
Repository: cordova-cli
Updated Branches:
refs/heads/master 7df468b35 -> ad15396f9
Fix tests broken by recent change to searchpath.
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/ad15396f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/ad15396f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/ad15396f
Branch: refs/heads/master
Commit: ad15396f9f79fc44312d819645307e053897487b
Parents: 7df468b
Author: Andrew Grieve <ag...@chromium.org>
Authored: Mon Mar 10 13:09:43 2014 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Mar 10 13:09:43 2014 -0400
----------------------------------------------------------------------
src/plugin.js | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/ad15396f/src/plugin.js
----------------------------------------------------------------------
diff --git a/src/plugin.js b/src/plugin.js
index 5d7597c..f0e01f7 100644
--- a/src/plugin.js
+++ b/src/plugin.js
@@ -91,6 +91,10 @@ module.exports = function plugin(command, targets, opts) {
} else if (opts.searchpath) {
searchPath = opts.searchpath.concat(searchPath);
}
+ // Blank it out to appease unit tests.
+ if (searchPath.length === 0) {
+ searchPath = undefined;
+ }
return hooks.fire('before_plugin_add', opts)
.then(function() {