Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4FC632007D0 for ; Tue, 10 May 2016 23:46:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4E9A916098A; Tue, 10 May 2016 21:46:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BB347160877 for ; Tue, 10 May 2016 23:46:09 +0200 (CEST) Received: (qmail 18626 invoked by uid 500); 10 May 2016 21:46:08 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 18612 invoked by uid 99); 10 May 2016 21:46:08 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 May 2016 21:46:08 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 805C0DFBDE; Tue, 10 May 2016 21:46:08 +0000 (UTC) From: omefire To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-cli pull request: Telemetry Content-Type: text/plain Message-Id: <20160510214608.805C0DFBDE@git1-us-west.apache.org> Date: Tue, 10 May 2016 21:46:08 +0000 (UTC) archived-at: Tue, 10 May 2016 21:46:10 -0000 Github user omefire commented on a diff in the pull request: https://github.com/apache/cordova-cli/pull/247#discussion_r62758588 --- Diff: spec/cli.spec.js --- @@ -50,19 +56,34 @@ describe("cordova cli", function () { beforeEach(function () { }); - it("will spit out the version with -v", function () { - cli(["node", "cordova", "-v"]); - expect(console.log.mostRecentCall.args[0]).toMatch(version); + it("will spit out the version with -v", function (done) { + cli(["node", "cordova", "-v"]).then(function() { + expect(console.log.mostRecentCall.args[0]).toMatch(version); + done(); + }).fail(function() { --- End diff -- They have changed because ```telemetry.showPrompt()``` is async, therefore the return of ```cli``` turned into async, and the tests had to be updated to reflect that. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org