Skip to content

Commit

Permalink
fix: property 'spec' does not exist on type 'Object' in api tests. (#…
Browse files Browse the repository at this point in the history
…22196)

Signed-off-by: mdolhalo <mdolhalo@redhat.com>
  • Loading branch information
nallikaea committed May 4, 2023
1 parent 03ef436 commit 37c09e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/specs/api/ContainerOverridesAPI.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/api/PodOverridesAPI.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ suite(`Test defining pod overrides via attribute.`, async function (): Promise<v
});

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.attributes['pod-overrides']).eqls({
metadata: {
annotations: {
Expand Down

0 comments on commit 37c09e5

Please sign in to comment.