mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
2fc1356f60
commit
fbb5ad9ebb
4 files changed
+230
-206
No files matched your search
@@ -72,7 +72,7 @@ describe("computeUnixShellEnvironment technical tests", () => {
|
||||
});
|
||||
});
|
||||
di.override(spawnInjectable, () => spawnMock);
|
||||
di.override(randomUUIDInjectable, () => () => "deadbeef");
|
||||
di.override(randomUUIDInjectable, () => () => "xxx-xxx-xxx-xxx-xxx");
|
||||
|
||||
di.override(processEnvInjectable, () => ({
|
||||
SOME_ENV_VAR: "some-env-value",
|
||||
|
||||
@@ -54,7 +54,7 @@ const sidebarItemsInjectable = getInjectable({
|
||||
);
|
||||
|
||||
const getSidebarItemsHierarchy = (registrations: SidebarItemRegistration[]) => {
|
||||
const _getSidebarItemsHierarchy = (parentId: string | null): HierarchicalSidebarItem[] =>
|
||||
const _getSidebarItemsHierarchy = (parentId: string | null): (HierarchicalSidebarItem | any)[] =>
|
||||
pipeline(
|
||||
registrations,
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ function VirtualListInner<T extends { getId(): string } | string>({
|
||||
? renderList(fixedHeight)
|
||||
: (
|
||||
<AutoSizer disableWidth>
|
||||
{({ height }) => renderList(height)}
|
||||
{({ height }) => renderList(height as number)}
|
||||
</AutoSizer>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user