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/04/01 17:55:06 UTC

git commit: CB-6344 Fix spy to return a default platform JSON instead of an empty object

Repository: cordova-cli
Updated Branches:
  refs/heads/master 289239daa -> 5cf9d9064


CB-6344 Fix spy to return a default platform JSON instead of an empty object

Fixes broken tests because of the refactoring in plugman regarding CB-6344

github: close #157


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/5cf9d906
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/5cf9d906
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/5cf9d906

Branch: refs/heads/master
Commit: 5cf9d9064005ff7bc6205c05277169b929e52fb5
Parents: 289239d
Author: Martin Bektchiev <ma...@telerik.com>
Authored: Tue Apr 1 17:23:11 2014 +0300
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Apr 1 11:54:25 2014 -0400

----------------------------------------------------------------------
 spec/prepare.spec.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/5cf9d906/spec/prepare.spec.js
----------------------------------------------------------------------
diff --git a/spec/prepare.spec.js b/spec/prepare.spec.js
index 925166e..204e548 100644
--- a/spec/prepare.spec.js
+++ b/spec/prepare.spec.js
@@ -84,7 +84,12 @@ describe('prepare command', function() {
         });
         plugman_prepare = spyOn(plugman, 'prepare').andReturn(Q());
         find_plugins = spyOn(util, 'findPlugins').andReturn([]);
-        plugman_get_json = spyOn(plugman.config_changes, 'get_platform_json').andReturn({});
+        plugman_get_json = spyOn(plugman.config_changes, 'get_platform_json').andReturn({
+            prepare_queue:{installed:[], uninstalled:[]},
+            config_munge:{},
+            installed_plugins:{},
+            dependent_plugins:{}
+        });
         load = spyOn(lazy_load, 'based_on_config').andReturn(Q());
         cp = spyOn(shell, 'cp').andReturn(true);
         mkdir = spyOn(shell, 'mkdir');