cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [2/2] git commit: Fix tests on node 0.11.x
Date Fri, 06 Jun 2014 20:24:39 GMT
Fix tests on node 0.11.x


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

Branch: refs/heads/master
Commit: d2d11a6be625e4ed92ef0a17ca78541fe1f42365
Parents: 69f0017
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Jun 6 16:00:59 2014 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Jun 6 16:24:21 2014 -0400

----------------------------------------------------------------------
 cordova-lib/spec-cordova/restore.spec.js | 2 +-
 cordova-lib/spec-cordova/save.spec.js    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d2d11a6b/cordova-lib/spec-cordova/restore.spec.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/restore.spec.js b/cordova-lib/spec-cordova/restore.spec.js
index 745e78e..d32784e 100644
--- a/cordova-lib/spec-cordova/restore.spec.js
+++ b/cordova-lib/spec-cordova/restore.spec.js
@@ -42,7 +42,7 @@ describe('restore command', function(){
   it('should not run outside of a Cordova-based project by calling util.isCordova', function()
{
      is_cordova.andReturn(false);
      wrapper(cordova.raw.restore, function() {
-        expect(result).toEqual(new Error('Current working directory is not a Cordova-based
project.'));
+        expect(result.message).toMatch('Current working directory is not a Cordova-based
project.');
      });
   });
 

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d2d11a6b/cordova-lib/spec-cordova/save.spec.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/save.spec.js b/cordova-lib/spec-cordova/save.spec.js
index c5ddcf2..6c76dd9 100644
--- a/cordova-lib/spec-cordova/save.spec.js
+++ b/cordova-lib/spec-cordova/save.spec.js
@@ -42,7 +42,7 @@ describe('save command', function(){
   it('should not run outside of a Cordova-based project by calling util.isCordova', function()
{
      is_cordova.andReturn(false);
      wrapper(cordova.raw.save, function() {
-        expect(result).toEqual(new Error('Current working directory is not a Cordova-based
project.'));
+        expect('' + result).toMatch('Current working directory is not a Cordova-based project.');
      });
   });
 


Mime
View raw message