cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: Fix tests broken by recent change to searchpath.
Date Mon, 10 Mar 2014 17:10:05 GMT
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 <agrieve@chromium.org>
Authored: Mon Mar 10 13:09:43 2014 -0400
Committer: Andrew Grieve <agrieve@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() {


Mime
View raw message