mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Create injectables in test-env also
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
9aae3ffd33
commit
1855b2ab4f
2 files changed
+22
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { AddRemoveButtons } from "@k8slens/core/renderer";
|
||||
import { addOrRemoveButtonsInjectionToken } from "@k8slens/table";
|
||||
|
||||
const addRemoveButtonsInjectable = getInjectable({
|
||||
id: "add-remove-buttons-component",
|
||||
instantiate: () => ({ Component: AddRemoveButtons }),
|
||||
injectionToken: addOrRemoveButtonsInjectionToken,
|
||||
});
|
||||
|
||||
export default addRemoveButtonsInjectable
|
||||
@@ -0,0 +1,11 @@
|
||||
import { tableComponentInjectionToken } from "@k8slens/table";
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { Table } from "@k8slens/core/renderer";
|
||||
|
||||
const tableComponentInjectable = getInjectable({
|
||||
id: "table-component",
|
||||
instantiate: () => ({ Component: Table }),
|
||||
injectionToken: tableComponentInjectionToken,
|
||||
});
|
||||
|
||||
export default tableComponentInjectable
|
||||
Reference in new issue
Block a user