Repository: cordova-lib Updated Branches: refs/heads/master 3fe8c0f47 -> 4001bd33d
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/4001bd33 Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/4001bd33 Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/4001bd33 Branch: refs/heads/master Commit: 4001bd33d1c5871a21d5044e6deb93e3d57a1ee6 Parents: 3fe8c0f Author: Josh Soref <[email protected]> Authored: Wed Jul 30 16:33:40 2014 -0400 Committer: Josh Soref <[email protected]> Committed: Wed Jul 30 17:09:39 2014 -0400 ---------------------------------------------------------------------- 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/4001bd33/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() {
