cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: CB-6344 Fix spy to return a default platform JSON instead of an empty object
Date Tue, 01 Apr 2014 15:55:06 GMT
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 <martin.bektchiev@telerik.com>
Authored: Tue Apr 1 17:23:11 2014 +0300
Committer: Andrew Grieve <agrieve@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');


Mime
View raw message