cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject cordova-lib git commit: CB-9587 Fixes tests failures, introduced by 4ca15f2
Date Mon, 07 Sep 2015 13:28:30 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 7c62b98a9 -> 74a343217


CB-9587 Fixes tests failures, introduced by 4ca15f2


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

Branch: refs/heads/master
Commit: 74a34321728ac061f046db011f33674fbfab5989
Parents: 7c62b98
Author: Vladimir Kotikov <v-vlkoti@microsoft.com>
Authored: Mon Sep 7 15:56:16 2015 +0300
Committer: Vladimir Kotikov <v-vlkoti@microsoft.com>
Committed: Mon Sep 7 16:00:11 2015 +0300

----------------------------------------------------------------------
 cordova-lib/.jshintignore                              |  6 ++----
 .../spec-cordova/metadata/browser_parser.spec.js       | 13 +++++++++++--
 2 files changed, 13 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/74a34321/cordova-lib/.jshintignore
----------------------------------------------------------------------
diff --git a/cordova-lib/.jshintignore b/cordova-lib/.jshintignore
index e13e685..4422d84 100644
--- a/cordova-lib/.jshintignore
+++ b/cordova-lib/.jshintignore
@@ -1,6 +1,4 @@
-spec-cordova/fixtures/platforms/android/*
-spec-cordova/fixtures/base/www/index.html
-spec-cordova/fixtures/base/www/js/index.js
-spec-cordova/fixtures/projWithHooks/www/js/index.js
+spec-cordova/fixtures/*
 spec-plugman/projects/*
 spec-plugman/plugins/*
+spec-cordova/temp/*

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/74a34321/cordova-lib/spec-cordova/metadata/browser_parser.spec.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/metadata/browser_parser.spec.js b/cordova-lib/spec-cordova/metadata/browser_parser.spec.js
index a44d7d3..4d640fe 100644
--- a/cordova-lib/spec-cordova/metadata/browser_parser.spec.js
+++ b/cordova-lib/spec-cordova/metadata/browser_parser.spec.js
@@ -17,7 +17,8 @@
     under the License.
 */
 
-var browserParser = require('../../src/cordova/metadata/browser_parser'),
+var rewire = require('rewire'),
+    browserParser = rewire('../../src/cordova/metadata/browser_parser'),
     util = require('../../src/cordova/util'),
     path = require('path'),
     shell = require('shelljs'),
@@ -26,10 +27,18 @@ var browserParser = require('../../src/cordova/metadata/browser_parser'),
 
 describe('browser project parser', function() {
     var proj = path.join('some', 'path');
-    var exists;
+    var exists, origDirExists;
 
     beforeEach(function() {
         exists = spyOn(fs, 'existsSync').andReturn(true);
+        origDirExists = browserParser.__get__('dirExists');
+        browserParser.__set__('dirExists', function () {
+            return true;
+        });
+    });
+
+    afterEach(function() {
+        browserParser.__set__('dirExists', origDirExists);
     });
 
     describe('constructions', function() {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message