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 AE13D200B33 for ; Wed, 15 Jun 2016 00:41:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AC871160A56; Tue, 14 Jun 2016 22:41:46 +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 24AF7160A06 for ; Wed, 15 Jun 2016 00:41:45 +0200 (CEST) Received: (qmail 82298 invoked by uid 500); 14 Jun 2016 22:41:45 -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 82287 invoked by uid 99); 14 Jun 2016 22:41:44 -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, 14 Jun 2016 22:41:44 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B2E83DFDEF; Tue, 14 Jun 2016 22:41:44 +0000 (UTC) From: stevengill To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-lib pull request #456: CB-11412 improve template implementation Content-Type: text/plain Message-Id: <20160614224144.B2E83DFDEF@git1-us-west.apache.org> Date: Tue, 14 Jun 2016 22:41:44 +0000 (UTC) archived-at: Tue, 14 Jun 2016 22:41:46 -0000 Github user stevengill commented on a diff in the pull request: https://github.com/apache/cordova-lib/pull/456#discussion_r67071311 --- Diff: cordova-lib/spec-cordova/create.spec.js --- @@ -121,6 +122,36 @@ describe('create end-to-end', function() { // expect(configXml.name()).toEqual('TestBase'); } + function checkSubDir() { + // Check if top level dirs exist. + var dirs = ['hooks', 'platforms', 'plugins', 'www']; + dirs.forEach(function(d) { + expect(path.join(project, d)).toExist(); + }); + expect(path.join(project, 'hooks', 'README.md')).toExist(); + + //index.js and template folder should not exist (inner files should be copied to the project folder) + expect(path.join(project, 'index.js')).not.toExist(); + expect(path.join(project, 'template')).not.toExist(); --- End diff -- Is this assuming the template folder is named `template`? --- 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