Skip to content

Commit

Permalink
Starting refactoring for better testability of webviews logic
Browse files Browse the repository at this point in the history
  • Loading branch information
khawkins committed Oct 23, 2023
1 parent 424311d commit 0620c87
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/commands/wizard/briefcaseCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import { ProgressLocation, Uri, window, l10n } from 'vscode';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { InstructionsWebviewProvider } from '../../webviews';
import { InstructionsWebviewProvider } from '../../webviews/instructions';

export class BriefcaseCommand {
static readonly OPEN_ORG_BRIEFCASE_PAGE_CMD =
Expand Down
2 changes: 1 addition & 1 deletion src/commands/wizard/configureProjectCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { Uri, WebviewPanel, commands, l10n, window } from 'vscode';
import * as process from 'process';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { InstructionsWebviewProvider } from '../../webviews';
import { InstructionsWebviewProvider } from '../../webviews/instructions';

export type ProjectManagementChoiceAction = (panel?: WebviewPanel) => void;

Expand Down
2 changes: 1 addition & 1 deletion src/commands/wizard/onboardingWizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { BriefcaseCommand } from './briefcaseCommand';
import { DeployToOrgCommand } from './deployToOrgCommand';
import { ConfigureProjectCommand } from './configureProjectCommand';
import { AuthorizeCommand } from './authorizeCommand';
import { InstructionsWebviewProvider } from '../../webviews';
import { InstructionsWebviewProvider } from '../../webviews/instructions';

const wizardCommand = 'salesforcedx-vscode-offline-app.onboardingWizard';
const onboardingWizardStateKey =
Expand Down
2 changes: 1 addition & 1 deletion src/commands/wizard/templateChooserCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { UIUtils } from '../../utils/uiUtils';
import { workspace } from 'vscode';
import * as path from 'path';
import * as fs from 'fs';
import { InstructionsWebviewProvider } from '../../webviews';
import { InstructionsWebviewProvider } from '../../webviews/instructions';

export interface TemplateQuickPickItem extends QuickPickItem {
filenamePrefix: string;
Expand Down
2 changes: 1 addition & 1 deletion src/test/suite/commands/wizard/briefcaseCommand.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { afterEach, beforeEach } from 'mocha';
import { BriefcaseCommand } from '../../../../commands/wizard/briefcaseCommand';
import { Uri, l10n, window, Progress, CancellationToken } from 'vscode';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { InstructionsWebviewProvider } from '../../../../webviews';
import { InstructionsWebviewProvider } from '../../../../webviews/instructions';

suite('Briefcase Command Test Suite', () => {
beforeEach(function () {});
Expand Down
2 changes: 1 addition & 1 deletion src/test/suite/webviews.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import * as assert from 'assert';
import * as sinon from 'sinon';
import { Uri, env, languages } from 'vscode';
import { InstructionsWebviewProvider } from '../../webviews';
import { InstructionsWebviewProvider } from '../../webviews/instructions';
import { afterEach, beforeEach } from 'mocha';
import * as fs from 'fs';

Expand Down
File renamed without changes.

0 comments on commit 0620c87

Please sign in to comment.