diff --git a/tests/e2e/specs/api/EmptyWorkspaceAPI.spec.ts b/tests/e2e/specs/api/EmptyWorkspaceAPI.spec.ts index cca2122e3a7..79bf9be13d0 100644 --- a/tests/e2e/specs/api/EmptyWorkspaceAPI.spec.ts +++ b/tests/e2e/specs/api/EmptyWorkspaceAPI.spec.ts @@ -34,10 +34,11 @@ suite('Empty workspace API test', function (): void { suiteSetup(`Create empty workspace with OC client ${BASE_TEST_CONSTANTS.TEST_ENVIRONMENT}`, async function (): Promise { const workspaceName: string = 'empty-' + Math.floor(Math.random() * 1000); const devfileContent: string = 'schemaVersion: 2.2.0\n' + 'metadata:\n' + ` name: ${workspaceName}\n`; - const editorContent:string=''; + const editorContent: string = ''; devWorkspaceConfigurationHelper = new DevWorkspaceConfigurationHelper({ - devfileContent, editorContent + devfileContent, + editorContent }); devfileContext = await devWorkspaceConfigurationHelper.generateDevfileContext(); devWorkspaceName = devfileContext?.devWorkspace?.metadata?.name; diff --git a/tests/e2e/specs/miscellaneous/UserSecretsInWorkspace.spec.ts b/tests/e2e/specs/miscellaneous/UserSecretsInWorkspace.spec.ts index 3ec0158aaff..6751fb640cf 100644 --- a/tests/e2e/specs/miscellaneous/UserSecretsInWorkspace.spec.ts +++ b/tests/e2e/specs/miscellaneous/UserSecretsInWorkspace.spec.ts @@ -34,7 +34,7 @@ suite('"User secrets in workspace" test', function (): void { ); const shellExecutor: ShellExecutor = e2eContainer.get(CLASSES.ShellExecutor); const testWorkspaceUtil: ITestWorkspaceUtil = e2eContainer.get(TYPES.WorkspaceUtil); - const userProject: string = OAUTH_CONSTANTS.TS_SELENIUM_OCP_USERNAME + `-devspaces`; + const userProject: string = OAUTH_CONSTANTS.TS_SELENIUM_OCP_USERNAME + '-devspaces'; const stackName: string = 'Empty Workspace'; const mountEnvCommand: string = `echo ' @@ -72,7 +72,7 @@ type: Opaque await projectAndFileTests.waitWorkspaceReadinessForCheCodeEditor(); }); - test('Check that mounted secret exists in envs list', async function (): Promise { + test('Check that mounted secret exists in envs list', function (): void { kubernetesCommandLineToolsExecutor = e2eContainer.get(CLASSES.KubernetesCommandLineToolsExecutor); kubernetesCommandLineToolsExecutor.workspaceName = WorkspaceHandlingTests.getWorkspaceName(); kubernetesCommandLineToolsExecutor.loginToOcp(); diff --git a/tests/e2e/utils/DevWorkspaceConfigurationHelper.ts b/tests/e2e/utils/DevWorkspaceConfigurationHelper.ts index e75248bd784..80efd79f3ff 100644 --- a/tests/e2e/utils/DevWorkspaceConfigurationHelper.ts +++ b/tests/e2e/utils/DevWorkspaceConfigurationHelper.ts @@ -20,7 +20,6 @@ import { IContextParams } from './IContextParams'; import { e2eContainer } from '../configs/inversify.config'; import { CLASSES, EXTERNAL_CLASSES } from '../configs/inversify.types'; import getDecorators from 'inversify-inject-decorators'; -import {DevfilesHelper} from "./DevfilesHelper"; const { lazyInject } = getDecorators(e2eContainer);