You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/11/27 23:27:11 UTC
[12/51] [abbrv] git commit: Update tests to match improvements
Update tests to match improvements
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/372e598f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/372e598f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/372e598f
Branch: refs/heads/fireos
Commit: 372e598f41350646ef52f1fba021e5e7007f1ffa
Parents: abab971
Author: SomaticIT <co...@somatic.fr>
Authored: Thu Nov 14 22:07:30 2013 +0100
Committer: SomaticIT <co...@somatic.fr>
Committed: Thu Nov 14 22:07:30 2013 +0100
----------------------------------------------------------------------
spec/metadata/windows8_parser.spec.js | 5 -----
spec/platform.spec.js | 4 ++--
2 files changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/372e598f/spec/metadata/windows8_parser.spec.js
----------------------------------------------------------------------
diff --git a/spec/metadata/windows8_parser.spec.js b/spec/metadata/windows8_parser.spec.js
index 87a2675..1187ac6 100644
--- a/spec/metadata/windows8_parser.spec.js
+++ b/spec/metadata/windows8_parser.spec.js
@@ -228,7 +228,6 @@ describe('windows8 project parser', function() {
var config, www, overrides, staging, svn;
beforeEach(function() {
config = spyOn(p, 'update_from_config');
- www = spyOn(p, 'update_www');
staging = spyOn(p, 'update_staging');
svn = spyOn(util, 'deleteSvnFolders');
});
@@ -243,10 +242,6 @@ describe('windows8 project parser', function() {
expect(err).toEqual(err);
});
});
- it('should call update_www', function() {
- p.update_project();
- expect(www).toHaveBeenCalled();
- });
it('should call update_staging', function() {
p.update_project();
expect(staging).toHaveBeenCalled();
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/372e598f/spec/platform.spec.js
----------------------------------------------------------------------
diff --git a/spec/platform.spec.js b/spec/platform.spec.js
index c9fee80..6df69a1 100644
--- a/spec/platform.spec.js
+++ b/spec/platform.spec.js
@@ -76,9 +76,9 @@ describe('platform command', function() {
fakeLazyLoad = function(id, platform, version) {
if (platform == 'wp7' || platform == 'wp8') {
- return Q(path.join('lib', 'wp', id, version));
+ return Q(path.join('lib', 'wp', id, version, platform));
} else {
- return Q(path.join('lib', platform, id, version));
+ return Q(path.join('lib', platform, id, version, platforms[platform] && platforms[platform].subdirectory ? platforms[platform].subdirectory : ''));
}
};
lazyLoadVersion = '3.1.0';