You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2019/12/24 05:38:29 UTC
[cordova-ios] branch master updated: refactor: transform split out
variables (#749)
This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git
The following commit(s) were added to refs/heads/master by this push:
new 2229e45 refactor: transform split out variables (#749)
2229e45 is described below
commit 2229e457b9569b6408dde354e59313977f5d15de
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Tue Dec 24 14:38:20 2019 +0900
refactor: transform split out variables (#749)
---
tests/spec/unit/Api.spec.js | 3 ++-
tests/spec/unit/Plugman/pluginHandler.spec.js | 9 ++++++---
tests/spec/unit/prepare.spec.js | 7 +++++--
3 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/tests/spec/unit/Api.spec.js b/tests/spec/unit/Api.spec.js
index f6c7f7b..99fb42c 100644
--- a/tests/spec/unit/Api.spec.js
+++ b/tests/spec/unit/Api.spec.js
@@ -66,7 +66,8 @@ describe('Platform Api', () => {
});
describe('.prototype', () => {
- let api, events;
+ let api;
+ let events;
const projectRoot = iosProjectFixture;
beforeEach(() => {
events = new EventEmitter();
diff --git a/tests/spec/unit/Plugman/pluginHandler.spec.js b/tests/spec/unit/Plugman/pluginHandler.spec.js
index 2ac70aa..2c8e124 100644
--- a/tests/spec/unit/Plugman/pluginHandler.spec.js
+++ b/tests/spec/unit/Plugman/pluginHandler.spec.js
@@ -294,7 +294,8 @@ describe('ios plugin handler', () => {
describe('of <js-module> elements', () => {
const jsModule = { src: 'www/dummyplugin.js' };
const install = pluginHandlers.getInstaller('js-module');
- let wwwDest, platformWwwDest;
+ let wwwDest;
+ let platformWwwDest;
beforeEach(() => {
spyOn(fs, 'writeFileSync');
@@ -497,7 +498,8 @@ describe('ios plugin handler', () => {
describe('of <js-module> elements', () => {
const jsModule = { src: 'www/dummyPlugin.js' };
const uninstall = pluginHandlers.getUninstaller('js-module');
- let wwwDest, platformWwwDest;
+ let wwwDest;
+ let platformWwwDest;
beforeEach(() => {
wwwDest = path.resolve(dummyProject.www, 'plugins', dummyPluginInfo.id, jsModule.src);
@@ -528,7 +530,8 @@ describe('ios plugin handler', () => {
describe('of <asset> elements', () => {
const asset = { src: 'www/dummyPlugin.js', target: 'foo/dummy.js' };
const uninstall = pluginHandlers.getUninstaller('asset');
- let wwwDest, platformWwwDest;
+ let wwwDest;
+ let platformWwwDest;
beforeEach(() => {
wwwDest = path.resolve(dummyProject.www, asset.target);
diff --git a/tests/spec/unit/prepare.spec.js b/tests/spec/unit/prepare.spec.js
index b610f0c..f57affc 100644
--- a/tests/spec/unit/prepare.spec.js
+++ b/tests/spec/unit/prepare.spec.js
@@ -43,7 +43,8 @@ shell.config.silent = true;
const ConfigParser = require('cordova-common').ConfigParser;
describe('prepare', () => {
- let p, Api;
+ let p;
+ let Api;
beforeEach(() => {
Api = rewire('../../../bin/templates/scripts/cordova/Api');
@@ -533,7 +534,9 @@ describe('prepare', () => {
/* eslint-enable no-unused-vars */
const xcOrig = xcode.project;
let writeFileSyncSpy;
- let cfg, cfg2, cfg3;
+ let cfg;
+ let cfg2;
+ let cfg3;
const updateProject = prepare.__get__('updateProject');
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org