cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgreb...@apache.org
Subject git commit: fix(tests): cordova/lazy_load spec on Windows
Date Sat, 19 Jul 2014 08:33:30 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 5536b5d8f -> a0476869b


fix(tests): cordova/lazy_load spec on Windows

Path on Windows is returned with forward slashes which is totaly fine; we should use path
normalization before string comparison


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

Branch: refs/heads/master
Commit: a0476869b63858527d6b1351b5436f2423501fdb
Parents: 5536b5d
Author: sgrebnov <v-segreb@microsoft.com>
Authored: Sat Jul 19 12:33:32 2014 +0400
Committer: sgrebnov <v-segreb@microsoft.com>
Committed: Sat Jul 19 12:33:32 2014 +0400

----------------------------------------------------------------------
 cordova-lib/spec-cordova/lazy_load.spec.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/a0476869/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 e6ce1eb..d54f019 100644
--- a/cordova-lib/spec-cordova/lazy_load.spec.js
+++ b/cordova-lib/spec-cordova/lazy_load.spec.js
@@ -202,7 +202,7 @@ describe('lazy_load module', function() {
                     }
                 };
                 lazy_load.custom(mock_platforms, 'X').then(function(dir) {
-                    expect(dir).toEqual('/some/random/lib');
+                    expect(path.normpath(dir)).toEqual('/some/random/lib');
                 }, function(err) {
                     expect(err).toBeUndefined();
                 }).fin(done);


Mime
View raw message