You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2017/06/20 17:46:44 UTC
[4/4] cordova-cli git commit: special handling for CI
special handling for CI
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/1b2487fa
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/1b2487fa
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/1b2487fa
Branch: refs/heads/master
Commit: 1b2487fa0e3e3b65114b18f1c62f55193991e81e
Parents: 10aec77
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Mon Jun 19 23:50:25 2017 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Jun 20 10:46:18 2017 -0700
----------------------------------------------------------------------
spec/cli.spec.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/1b2487fa/spec/cli.spec.js
----------------------------------------------------------------------
diff --git a/spec/cli.spec.js b/spec/cli.spec.js
index 60cebf2..0edbfa8 100644
--- a/spec/cli.spec.js
+++ b/spec/cli.spec.js
@@ -369,7 +369,12 @@ describe("cordova cli", function () {
telemetry.timeoutInSecs = 1;
cli(["node", "cordova", "--version"], function () {
- expect(telemetry.isOptedIn()).toBeFalsy();
+ if(process.env.CI) {
+ expect(telemetry.isOptedIn()).toBeTruthy();
+ }
+ else {
+ expect(telemetry.isOptedIn()).toBeFalsy();
+ }
expect(telemetry.track).toHaveBeenCalledWith("telemetry", "off", "via-cli-prompt-choice", "successful");
done();
});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org