1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix linting

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-11-04 07:27:35 +02:00
parent f77d5c0087
commit 6fa72fef94
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A
2 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,8 @@
* Copyright (c) OpenLens Authors. All rights reserved. * Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information. * Licensed under MIT License. See LICENSE in root directory for more information.
*/ */
import { act, RenderResult } from "@testing-library/react"; import type { RenderResult } from "@testing-library/react";
import { act } from "@testing-library/react";
import type { IObservableValue } from "mobx"; import type { IObservableValue } from "mobx";
import { computed, observable, runInAction } from "mobx"; import { computed, observable, runInAction } from "mobx";
import React from "react"; import React from "react";
@ -39,8 +40,8 @@ describe("<body/> elements originated from cluster frame component registration"
id: "dialog-with-observable-visibility-id", id: "dialog-with-observable-visibility-id",
Component: () => <div data-testid="dialog-with-observable-visibility">dialog contents</div>, Component: () => <div data-testid="dialog-with-observable-visibility">dialog contents</div>,
shouldRender: computed(() => someObservable.get()), shouldRender: computed(() => someObservable.get()),
} },
] ],
}, },
}; };

View File

@ -58,7 +58,7 @@ export const ClusterFrame = withInjectables<Dependencies>(NonInjectedClusterFram
subscribeStores: di.inject(subscribeStoresInjectable), subscribeStores: di.inject(subscribeStoresInjectable),
childComponents: computedInjectMany(clusterFrameChildComponentInjectionToken), childComponents: computedInjectMany(clusterFrameChildComponentInjectionToken),
watchHistoryState: di.inject(watchHistoryStateInjectable), watchHistoryState: di.inject(watchHistoryStateInjectable),
} };
}, },
}); });