cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dase...@apache.org
Subject cordova-cli git commit: CB-11250 Fix CLI tests verifying the version
Date Thu, 12 May 2016 09:46:43 GMT
Repository: cordova-cli
Updated Branches:
  refs/heads/master 773d2a8b6 -> f0bb91849


CB-11250 Fix CLI tests verifying the version


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

Branch: refs/heads/master
Commit: f0bb9184974ebfad694a8ad735c7568fbf61b759
Parents: 773d2a8
Author: daserge <v-seshak@microsoft.com>
Authored: Wed May 11 16:18:21 2016 +0300
Committer: daserge <v-seshak@microsoft.com>
Committed: Wed May 11 17:04:50 2016 +0300

----------------------------------------------------------------------
 spec/cli.spec.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f0bb9184/spec/cli.spec.js
----------------------------------------------------------------------
diff --git a/spec/cli.spec.js b/spec/cli.spec.js
index 03ba33a..b6064e9 100644
--- a/spec/cli.spec.js
+++ b/spec/cli.spec.js
@@ -52,17 +52,17 @@ describe("cordova cli", function () {
 
             it("will spit out the version with -v", function () {
                 cli(["node", "cordova", "-v"]);
-                expect(console.log.mostRecentCall.args[0]).toMatch(version);
+                expect(console.log.mostRecentCall.args[0]).toContain(version);
             });
 
             it("will spit out the version with --version", function () {
                 cli(["node", "cordova", "--version"]);
-                expect(console.log.mostRecentCall.args[0]).toMatch(version);
+                expect(console.log.mostRecentCall.args[0]).toContain(version);
             });
 
             it("will spit out the version with -v anywhere", function () {
                 cli(["node", "cordova", "one", "-v", "three"]);
-                expect(console.log.mostRecentCall.args[0]).toMatch(version);
+                expect(console.log.mostRecentCall.args[0]).toContain(version);
             });
         });
     });


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


Mime
View raw message