mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
dcc65a9385
commit
4e3060e48e
@ -23,7 +23,6 @@ import showErrorNotificationInjectable from "../../../renderer/components/notifi
|
|||||||
import readJsonFileInjectable from "../../../common/fs/read-json-file.injectable";
|
import readJsonFileInjectable from "../../../common/fs/read-json-file.injectable";
|
||||||
import directoryForLensLocalStorageInjectable from "../../../common/directory-for-lens-local-storage/directory-for-lens-local-storage.injectable";
|
import directoryForLensLocalStorageInjectable from "../../../common/directory-for-lens-local-storage/directory-for-lens-local-storage.injectable";
|
||||||
import hostedClusterIdInjectable from "../../../renderer/cluster-frame-context/hosted-cluster-id.injectable";
|
import hostedClusterIdInjectable from "../../../renderer/cluster-frame-context/hosted-cluster-id.injectable";
|
||||||
import { controlWhenStoragesAreReady } from "../../../renderer/utils/create-storage/storages-are-ready";
|
|
||||||
|
|
||||||
describe("cluster/namespaces - edit namespace from new tab", () => {
|
describe("cluster/namespaces - edit namespace from new tab", () => {
|
||||||
let builder: ApplicationBuilder;
|
let builder: ApplicationBuilder;
|
||||||
@ -31,7 +30,6 @@ describe("cluster/namespaces - edit namespace from new tab", () => {
|
|||||||
let callForPatchResourceMock: AsyncFnMock<CallForPatchResource>;
|
let callForPatchResourceMock: AsyncFnMock<CallForPatchResource>;
|
||||||
let showSuccessNotificationMock: jest.Mock;
|
let showSuccessNotificationMock: jest.Mock;
|
||||||
let showErrorNotificationMock: jest.Mock;
|
let showErrorNotificationMock: jest.Mock;
|
||||||
let storagesAreReady: () => Promise<void>;
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
builder = getApplicationBuilder();
|
builder = getApplicationBuilder();
|
||||||
@ -46,8 +44,6 @@ describe("cluster/namespaces - edit namespace from new tab", () => {
|
|||||||
|
|
||||||
windowDi.override(hostedClusterIdInjectable, () => "some-cluster-id");
|
windowDi.override(hostedClusterIdInjectable, () => "some-cluster-id");
|
||||||
|
|
||||||
storagesAreReady = controlWhenStoragesAreReady(windowDi);
|
|
||||||
|
|
||||||
showSuccessNotificationMock = jest.fn();
|
showSuccessNotificationMock = jest.fn();
|
||||||
windowDi.override(showSuccessNotificationInjectable, () => showSuccessNotificationMock);
|
windowDi.override(showSuccessNotificationInjectable, () => showSuccessNotificationMock);
|
||||||
|
|
||||||
@ -81,8 +77,6 @@ describe("cluster/namespaces - edit namespace from new tab", () => {
|
|||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
rendered = await builder.render();
|
rendered = await builder.render();
|
||||||
|
|
||||||
await storagesAreReady();
|
|
||||||
|
|
||||||
windowDi = builder.applicationWindow.only.di;
|
windowDi = builder.applicationWindow.only.di;
|
||||||
|
|
||||||
const navigateToNamespaces = windowDi.inject(navigateToNamespacesInjectable);
|
const navigateToNamespaces = windowDi.inject(navigateToNamespacesInjectable);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user