From 37c09e571fa83c4cd7b31976491038dc10b8e5ab Mon Sep 17 00:00:00 2001 From: Maryna Dolhalova <72726250+nallikaea@users.noreply.github.com> Date: Thu, 4 May 2023 11:30:10 +0200 Subject: [PATCH] fix: property 'spec' does not exist on type 'Object' in api tests. (#22196) Signed-off-by: mdolhalo --- tests/e2e/specs/api/ContainerOverridesAPI.spec.ts | 2 +- tests/e2e/specs/api/PodOverridesAPI.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/specs/api/ContainerOverridesAPI.spec.ts b/tests/e2e/specs/api/ContainerOverridesAPI.spec.ts index 8f38410b932..adba1997e22 100644 --- a/tests/e2e/specs/api/ContainerOverridesAPI.spec.ts +++ b/tests/e2e/specs/api/ContainerOverridesAPI.spec.ts @@ -23,7 +23,7 @@ suite(`Test defining container overrides via attribute.`, async function (): Pro }); test('Check that fields are overridden in the Deployment for DewWorkspace', function (): void { - const devWorkspaceFullYamlOutput: Object = YAML.parse(kubernetesCommandLineToolsExecutor.getDevWorkspaceYamlConfiguration()); + const devWorkspaceFullYamlOutput: any = YAML.parse(kubernetesCommandLineToolsExecutor.getDevWorkspaceYamlConfiguration()); expect(devWorkspaceFullYamlOutput.spec.template.components[0].attributes['container-overrides']).eqls({ resources: { limits: { diff --git a/tests/e2e/specs/api/PodOverridesAPI.spec.ts b/tests/e2e/specs/api/PodOverridesAPI.spec.ts index e9b27fe939c..0f5b6dfbb90 100644 --- a/tests/e2e/specs/api/PodOverridesAPI.spec.ts +++ b/tests/e2e/specs/api/PodOverridesAPI.spec.ts @@ -23,7 +23,7 @@ suite(`Test defining pod overrides via attribute.`, async function (): Promise