Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AFACC11AB2 for ; Fri, 5 Sep 2014 18:14:09 +0000 (UTC) Received: (qmail 59916 invoked by uid 500); 5 Sep 2014 18:14:07 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 59862 invoked by uid 500); 5 Sep 2014 18:14:07 -0000 Mailing-List: contact commits-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 commits@cordova.apache.org Received: (qmail 59261 invoked by uid 99); 5 Sep 2014 18:14:07 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Sep 2014 18:14:07 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 46EB2A0ABB8; Fri, 5 Sep 2014 18:14:07 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anis@apache.org To: commits@cordova.apache.org Date: Fri, 05 Sep 2014 18:14:48 -0000 Message-Id: <9022a3174abd41c2a2f2243a0f44e01a@git.apache.org> In-Reply-To: <07113a0fc0c24dcca5b769b7cc625c33@git.apache.org> References: <07113a0fc0c24dcca5b769b7cc625c33@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [43/50] git commit: [Windows8] Fix failing test to match updated functionality [Windows8] Fix failing test to match updated functionality Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/11e1c890 Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/11e1c890 Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/11e1c890 Branch: refs/heads/master Commit: 11e1c890b09cd5d48f7241891af4786189bcc3a0 Parents: 35fe7cb Author: Jesse MacFadyen Authored: Wed Sep 3 01:49:07 2014 -0700 Committer: Anis Kadri Committed: Fri Sep 5 11:12:20 2014 -0700 ---------------------------------------------------------------------- cordova-lib/spec-plugman/platforms/windows8.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/11e1c890/cordova-lib/spec-plugman/platforms/windows8.spec.js ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/platforms/windows8.spec.js b/cordova-lib/spec-plugman/platforms/windows8.spec.js index ee68bd8..fd550e9 100644 --- a/cordova-lib/spec-plugman/platforms/windows8.spec.js +++ b/cordova-lib/spec-plugman/platforms/windows8.spec.js @@ -108,7 +108,7 @@ describe('windows8 project handler', function() { var source = copyArray(valid_source); var s = spyOn(common, 'copyFile'); windows8['source-file'].install(source[0], dummyplugin, temp, dummy_id, proj_files); - expect(s).toHaveBeenCalledWith(dummyplugin, 'src/windows8/dummer.js', temp, path.join('www', 'plugins', 'com.phonegap.plugins.dummyplugin', 'dummer.js')); + expect(s).toHaveBeenCalledWith(dummyplugin, 'src/windows8/dummer.js', temp, path.join('plugins', 'com.phonegap.plugins.dummyplugin', 'dummer.js')); }); it('should throw if source-file src cannot be found', function() { var source = copyArray(invalid_source); @@ -118,7 +118,7 @@ describe('windows8 project handler', function() { }); it('should throw if source-file target already exists', function() { var source = copyArray(valid_source); - var target = path.join(temp, 'www', 'plugins', dummy_id, 'dummer.js'); + var target = path.join(temp, 'plugins', dummy_id, 'dummer.js'); shell.mkdir('-p', path.dirname(target)); fs.writeFileSync(target, 'some bs', 'utf-8'); expect(function() { @@ -144,7 +144,7 @@ describe('windows8 project handler', function() { .then(function() { var source = copyArray(valid_source); windows8['source-file'].uninstall(source[0], temp, dummy_id, proj_files); - expect(s).toHaveBeenCalledWith(temp, path.join('www', 'plugins', 'com.phonegap.plugins.dummyplugin', 'dummer.js')); + expect(s).toHaveBeenCalledWith(temp, path.join('plugins', 'com.phonegap.plugins.dummyplugin', 'dummer.js')); done(); }); });