diff --git a/packages/dashboard-backend/src/devworkspaceClient/services/__tests__/gettingStartedSamplesApi.spec.ts b/packages/dashboard-backend/src/devworkspaceClient/services/__tests__/gettingStartedSamplesApi.spec.ts index a10971656..3820d1ec1 100644 --- a/packages/dashboard-backend/src/devworkspaceClient/services/__tests__/gettingStartedSamplesApi.spec.ts +++ b/packages/dashboard-backend/src/devworkspaceClient/services/__tests__/gettingStartedSamplesApi.spec.ts @@ -11,7 +11,6 @@ */ import * as mockClient from '@kubernetes/client-node'; -import { CustomObjectsApi } from '@kubernetes/client-node'; import { GettingStartedSample } from '../gettingStartedSamplesApi'; import { api } from '@eclipse-che/common'; @@ -28,14 +27,14 @@ describe('Getting Started Samples API Service', () => { const { KubeConfig } = mockClient; const kubeConfig = new KubeConfig(); - kubeConfig.makeApiClient = jest.fn().mockImplementation((_api: unknown) => { + kubeConfig.makeApiClient = jest.fn().mockImplementation(() => { return { listNamespacedConfigMap: () => { return Promise.resolve({ body: { items: [{ data: { mySample: JSON.stringify(getGettingStartedSample()) } }] }, }); }, - } as unknown as CustomObjectsApi; + }; }); gettingStartedSample = new GettingStartedSample(kubeConfig); diff --git a/packages/dashboard-backend/src/routes/api/gettingStartedSample.ts b/packages/dashboard-backend/src/routes/api/gettingStartedSample.ts index 0815c0b08..884362590 100644 --- a/packages/dashboard-backend/src/routes/api/gettingStartedSample.ts +++ b/packages/dashboard-backend/src/routes/api/gettingStartedSample.ts @@ -10,7 +10,7 @@ * Red Hat, Inc. - initial API and implementation */ -import { FastifyInstance} from 'fastify'; +import { FastifyInstance } from 'fastify'; import { baseApiPath } from '../../constants/config'; import { getSchema } from '../../services/helpers'; import { getDevWorkspaceClient } from './helpers/getDevWorkspaceClient'; diff --git a/packages/dashboard-frontend/src/typings/che.d.ts b/packages/dashboard-frontend/src/typings/che.d.ts index 4c22e7dcc..27d96bcb3 100755 --- a/packages/dashboard-frontend/src/typings/che.d.ts +++ b/packages/dashboard-frontend/src/typings/che.d.ts @@ -110,6 +110,7 @@ declare namespace che { self?: string; [key: string]: any; }; + url?: string; tags: Array; }