Skip to content

Commit

Permalink
refactor: transform split out variables
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu committed Dec 24, 2019
1 parent cb313f4 commit 8115a93
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion tests/spec/unit/Api.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ describe('Platform Api', () => {
});

describe('.prototype', () => {
let api, events;
let api;
let events;
const projectRoot = iosProjectFixture;
beforeEach(() => {
events = new EventEmitter();
Expand Down
9 changes: 6 additions & 3 deletions tests/spec/unit/Plugman/pluginHandler.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
7 changes: 5 additions & 2 deletions tests/spec/unit/prepare.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit 8115a93

Please sign in to comment.