diff --git a/packages/salesforcedx-vscode-core/src/settings/index.ts b/packages/salesforcedx-vscode-core/src/settings/index.ts index 4f3684df64..9b889b5f03 100644 --- a/packages/salesforcedx-vscode-core/src/settings/index.ts +++ b/packages/salesforcedx-vscode-core/src/settings/index.ts @@ -8,9 +8,4 @@ import { SfdxCoreSettings } from './sfdxCoreSettings'; export const sfdxCoreSettings = SfdxCoreSettings.getInstance(); -export { - FileEventType, - getPackageDirectoriesGlobString, - pushOrDeploy, - registerPushOrDeployOnSave -} from './pushOrDeployOnSave'; +export { registerPushOrDeployOnSave } from './pushOrDeployOnSave'; diff --git a/packages/salesforcedx-vscode-core/test/commands/forceSourceRetrieveSourcePath.test.ts b/packages/salesforcedx-vscode-core/test/commands/forceSourceRetrieveSourcePath.test.ts index bfbb0b527f..3800879343 100644 --- a/packages/salesforcedx-vscode-core/test/commands/forceSourceRetrieveSourcePath.test.ts +++ b/packages/salesforcedx-vscode-core/test/commands/forceSourceRetrieveSourcePath.test.ts @@ -52,7 +52,7 @@ describe('SourcePathChecker', () => { showErrorMessageSpy.restore(); }); - it('Should continue when source path is package directory', async () => { + it('Should continue when source path is a package directory', async () => { const getProjectDirectoriesStub = stub( SfdxProjectJsonParser.prototype, 'getPackageDirectoryPaths' diff --git a/packages/salesforcedx-vscode-core/test/settings/pushOrDeployOnSave.test.ts b/packages/salesforcedx-vscode-core/test/settings/pushOrDeployOnSave.test.ts index 92ea26117b..11d9de9211 100644 --- a/packages/salesforcedx-vscode-core/test/settings/pushOrDeployOnSave.test.ts +++ b/packages/salesforcedx-vscode-core/test/settings/pushOrDeployOnSave.test.ts @@ -18,7 +18,7 @@ import { FileEventType, getPackageDirectoriesGlobString, pushOrDeploy -} from '../../src/settings'; +} from '../../src/settings/pushOrDeployOnSave'; const OrgType = context.OrgType; /* tslint:disable:no-unused-expression */ @@ -161,7 +161,7 @@ describe('pushOrDeploy', () => { executeCommandStub.restore(); }); - const testPushOrDeployOn = async (fileEvent: FileEventType) => { + const testPushOn = async (fileEvent: FileEventType) => { await pushOrDeploy(fileEvent); expect(executeCommandStub.calledOnce).to.be.true; @@ -173,15 +173,15 @@ describe('pushOrDeploy', () => { }; it('should call force:source:push on file creation', async () => { - await testPushOrDeployOn(FileEventType.Create); + await testPushOn(FileEventType.Create); }); it('should call force:source:push on file change', async () => { - await testPushOrDeployOn(FileEventType.Change); + await testPushOn(FileEventType.Change); }); it('should call force:source:push on file deletion', async () => { - await testPushOrDeployOn(FileEventType.Delete); + await testPushOn(FileEventType.Delete); }); });