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:
parent
f77d5c0087
commit
6fa72fef94
@ -2,7 +2,8 @@
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* 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 { computed, observable, runInAction } from "mobx";
|
||||
import React from "react";
|
||||
@ -20,7 +21,7 @@ describe("<body/> elements originated from cluster frame component registration"
|
||||
|
||||
describe("given custom components for cluster view available", () => {
|
||||
let someObservable: IObservableValue<boolean>;
|
||||
|
||||
|
||||
beforeEach(async () => {
|
||||
someObservable = observable.box(false);
|
||||
|
||||
@ -39,8 +40,8 @@ describe("<body/> elements originated from cluster frame component registration"
|
||||
id: "dialog-with-observable-visibility-id",
|
||||
Component: () => <div data-testid="dialog-with-observable-visibility">dialog contents</div>,
|
||||
shouldRender: computed(() => someObservable.get()),
|
||||
}
|
||||
]
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ export const ClusterFrame = withInjectables<Dependencies>(NonInjectedClusterFram
|
||||
subscribeStores: di.inject(subscribeStoresInjectable),
|
||||
childComponents: computedInjectMany(clusterFrameChildComponentInjectionToken),
|
||||
watchHistoryState: di.inject(watchHistoryStateInjectable),
|
||||
}
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user