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 DC75F200BDC for ; Wed, 14 Dec 2016 21:18:54 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DB0E8160B19; Wed, 14 Dec 2016 20:18:54 +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 5664A160B0D for ; Wed, 14 Dec 2016 21:18:54 +0100 (CET) Received: (qmail 38304 invoked by uid 500); 14 Dec 2016 20:18:48 -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 38287 invoked by uid 99); 14 Dec 2016 20:18:48 -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; Wed, 14 Dec 2016 20:18:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 24AD3F169E; Wed, 14 Dec 2016 20:18:48 +0000 (UTC) From: audreyso To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-lib pull request #510: Fixjasmine : CB:12018 - updating tests in cor... Content-Type: text/plain Message-Id: <20161214201848.24AD3F169E@git1-us-west.apache.org> Date: Wed, 14 Dec 2016 20:18:48 +0000 (UTC) archived-at: Wed, 14 Dec 2016 20:18:55 -0000 Github user audreyso commented on a diff in the pull request: https://github.com/apache/cordova-lib/pull/510#discussion_r92480348 --- Diff: cordova-common/spec/CordovaCheck.spec.js --- @@ -30,11 +30,12 @@ describe('findProjectRoot method', function() { process.env.PWD = origPWD; process.chdir(cwd); }); +function removeDir(someDirectory) { + shell.rm('-rf', someDirectory); +} it('should return false if it hits the home directory', function() { var somedir = path.join(home, 'somedir'); - this.after(function() { --- End diff -- Here does this.after remove the somedir similarly to how we are using in for testing save/fetch? In the beforeEach, I have ``` shell.rm('-rf', project); ``` to clear the previous temp project? Maybe I should just use my function in a beforeEach? But then how will the someDir get updated if it changes from test to test? (if that makes sense) --- 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