You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2014/09/05 20:14:08 UTC

[03/50] git commit: CB-7100: Use npm based lazy-load by default

CB-7100: Use npm based lazy-load by default

fixing test to use imaginary version to avoid colliding with actual local content


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

Branch: refs/heads/master
Commit: f528fddb218b4da06d55f27c30a2818cab83893c
Parents: f6ada9e
Author: Josh Soref <js...@blackberry.com>
Authored: Wed Jul 30 16:33:40 2014 -0400
Committer: Anis Kadri <an...@apache.org>
Committed: Fri Sep 5 11:12:17 2014 -0700

----------------------------------------------------------------------
 cordova-lib/spec-cordova/lazy_load.spec.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/f528fddb/cordova-lib/spec-cordova/lazy_load.spec.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/lazy_load.spec.js b/cordova-lib/spec-cordova/lazy_load.spec.js
index d54f019..72a26bf 100644
--- a/cordova-lib/spec-cordova/lazy_load.spec.js
+++ b/cordova-lib/spec-cordova/lazy_load.spec.js
@@ -43,9 +43,15 @@ describe('lazy_load module', function() {
         };
     });
     describe('cordova method (loads stock cordova libs)', function() {
-        var custom;
+        var custom,
+            version;
         beforeEach(function() {
             custom = spyOn(lazy_load, 'custom').andReturn(Q(path.join('lib','dir')));
+            version = platforms.android.version;
+            platforms.android.version = "3.14.15.9265";
+        });
+        afterEach(function () {
+            platforms.android.version = version;
         });
         it('should throw if platform is not a stock cordova platform', function(done) {
             lazy_load.cordova('atari').then(function() {