Skip to content

Commit

Permalink
remove unused imports in the second place
Browse files Browse the repository at this point in the history
  • Loading branch information
musienko-maxim committed Nov 11, 2024
1 parent 0c7b535 commit e7dde4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions tests/e2e/specs/miscellaneous/WorkspaceWithParent.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ suite(`Workspace using a parent test suite ${BASE_TEST_CONSTANTS.TEST_ENVIRONMEN
CLASSES.KubernetesCommandLineToolsExecutor
);
const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
const createWorkspace: CreateWorkspace = e2eContainer.get(CLASSES.CreateWorkspace);

let podName: string = '';

suiteSetup(function (): void {
Expand Down
5 changes: 3 additions & 2 deletions tests/e2e/utils/workspace/TestWorkspaceUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ export class TestWorkspaceUtil implements ITestWorkspaceUtil {
* set user preferences for Che "security.workspace.trust.enabled": false using JS. in background mode
*/
async switchOffTrustDialogWithJavaScript(): Promise<void> {
const javaScriptExecCode: string = '(async function importData() {\n' +
const javaScriptExecCode: string =
'(async function importData() {\n' +
' const stub = "{\\"vscode-web-db\\":{\\"vscode-userdata-store\\":{\\"/User/settings.json\\":{\\"type\\":\\"Uint8Array\\",\\"value\\":\\"%7B%0A%20%20%20%20%22security.workspace.trust.enabled%22%3A%20false%0A%7D\\"}}}}";\n' +
' for (const [dbName, dbData] of Object.entries(JSON.parse(stub))) {\n' +
' const req = indexedDB.open(dbName);\n' +
Expand All @@ -195,7 +196,7 @@ export class TestWorkspaceUtil implements ITestWorkspaceUtil {
' await new Promise((r) => (transaction.oncomplete = r));\n' +
' }\n' +
' }\n' +
'})().then(() => {});'
'})().then(() => {});';
await this.driverHelper.getDriver().executeScript(javaScriptExecCode);
}
}

0 comments on commit e7dde4e

Please sign in to comment.