Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Sep 5, 2023
1 parent ff21b1d commit 9f33afc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions packages/dashboard-frontend/src/typings/che.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ declare namespace che {
self?: string;
[key: string]: any;
};
url?: string;
tags: Array<string>;
}

Expand Down

0 comments on commit 9f33afc

Please sign in to comment.