mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove isClusterScoped from ItemListLayout (#2743)
* remove isClusterScoped from ItemListLayout Signed-off-by: Sebastian Malton <sebastian@malton.name> * Move <NamespaceSelectFilter> to KubeObjectListLayout Signed-off-by: Sebastian Malton <sebastian@malton.name> * revert to simpler NamespaceSelectFilter fix Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
0d0c67f13f
commit
deaf67b30b
11 files changed
+43
-32
No files matched your search
@@ -29,6 +29,19 @@ import { MainLayoutHeader } from "../main-layout-header";
|
||||
import { Cluster } from "../../../../main/cluster";
|
||||
import { ClusterStore } from "../../../../common/cluster-store";
|
||||
import mockFs from "mock-fs";
|
||||
import { ThemeStore } from "../../../theme.store";
|
||||
import { UserStore } from "../../../../common/user-store";
|
||||
|
||||
jest.mock("electron", () => {
|
||||
return {
|
||||
app: {
|
||||
getVersion: () => "99.99.99",
|
||||
getPath: () => "tmp",
|
||||
getLocale: () => "en",
|
||||
setLoginItemSettings: jest.fn(),
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
describe("<MainLayoutHeader />", () => {
|
||||
let cluster: Cluster;
|
||||
@@ -60,6 +73,8 @@ describe("<MainLayoutHeader />", () => {
|
||||
|
||||
mockFs(mockOpts);
|
||||
|
||||
UserStore.createInstance();
|
||||
ThemeStore.createInstance();
|
||||
ClusterStore.createInstance();
|
||||
|
||||
cluster = new Cluster({
|
||||
@@ -71,6 +86,8 @@ describe("<MainLayoutHeader />", () => {
|
||||
|
||||
afterEach(() => {
|
||||
ClusterStore.resetInstance();
|
||||
ThemeStore.resetInstance();
|
||||
UserStore.resetInstance();
|
||||
mockFs.restore();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user