mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Tweak export names to make them easier to import
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
046d72b99f
commit
e6dd647e51
@ -1,4 +1,4 @@
|
||||
export { feature } from "./src/feature";
|
||||
export { applicationFeature } from "./src/feature";
|
||||
|
||||
export { onLoadOfApplicationInjectionToken } from "./src/start-application/timeslots/on-load-of-application-injection-token";
|
||||
export { beforeApplicationIsLoadingInjectionToken } from "./src/start-application/timeslots/before-application-is-loading-injection-token";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { getFeature } from "@k8slens/feature-core";
|
||||
import { autoRegister } from "@ogre-tools/injectable-extension-for-auto-registration";
|
||||
|
||||
export const feature = getFeature({
|
||||
export const applicationFeature = getFeature({
|
||||
id: "application",
|
||||
|
||||
register: (di) => {
|
||||
|
||||
@ -4,7 +4,7 @@ import {
|
||||
getInjectable,
|
||||
} from "@ogre-tools/injectable";
|
||||
import { registerFeature } from "@k8slens/feature-core";
|
||||
import { feature } from "../feature";
|
||||
import { applicationFeature } from "../feature";
|
||||
import { startApplicationInjectionToken } from "./start-application.injectable";
|
||||
import { beforeApplicationIsLoadingInjectionToken } from "./timeslots/before-application-is-loading-injection-token";
|
||||
import asyncFn, { AsyncFnMock } from "@async-fn/jest";
|
||||
@ -21,7 +21,7 @@ describe("starting-of-application", () => {
|
||||
beforeEach(() => {
|
||||
di = createContainer("irrelevant");
|
||||
|
||||
registerFeature(di, feature);
|
||||
registerFeature(di, applicationFeature);
|
||||
|
||||
beforeApplicationIsLoadingMock = asyncFn();
|
||||
onLoadOfApplicationMock = asyncFn();
|
||||
|
||||
@ -3,6 +3,6 @@ import { overrideSideEffectsWithFakes } from "./src/override-side-effects-with-f
|
||||
export { beforeElectronIsReadyInjectionToken } from "./src/start-application/timeslots/before-electron-is-ready-injection-token";
|
||||
export { beforeAnythingInjectionToken } from "./src/start-application/timeslots/before-anything-injection-token";
|
||||
|
||||
export { feature } from "./src/feature";
|
||||
export { applicationFeatureForElectronMain } from "./src/applicationFeatureForElectronMain";
|
||||
|
||||
export const testUtils = { overrideSideEffectsWithFakes }
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { getFeature } from "@k8slens/feature-core";
|
||||
import { autoRegister } from "@ogre-tools/injectable-extension-for-auto-registration";
|
||||
import { feature as applicationFeature } from '@k8slens/application';
|
||||
import { applicationFeature } from '@k8slens/application';
|
||||
|
||||
export const feature = getFeature({
|
||||
export const applicationFeatureForElectronMain = getFeature({
|
||||
id: "application-for-electron-main",
|
||||
|
||||
register: (di) => {
|
||||
@ -1,14 +1,14 @@
|
||||
import electronAppInjectable from "./electron-app.injectable";
|
||||
import { app } from 'electron';
|
||||
import { createContainer } from "@ogre-tools/injectable";
|
||||
import { feature } from "../feature";
|
||||
import { applicationFeatureForElectronMain } from "../applicationFeatureForElectronMain";
|
||||
import { registerFeature } from "@k8slens/feature-core";
|
||||
|
||||
describe('electron-app', () => {
|
||||
it('is electron app', () => {
|
||||
const di = createContainer('irrelevant');
|
||||
|
||||
registerFeature(di, feature)
|
||||
registerFeature(di, applicationFeatureForElectronMain)
|
||||
|
||||
const actual = di.inject(electronAppInjectable);
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { createContainer, DiContainer } from "@ogre-tools/injectable";
|
||||
import { feature } from "../../feature";
|
||||
import { applicationFeatureForElectronMain } from "../../applicationFeatureForElectronMain";
|
||||
import { registerFeature } from "@k8slens/feature-core";
|
||||
import whenAppIsReadyInjectable from "../when-app-is-ready.injectable";
|
||||
import { getPromiseStatus } from "@ogre-tools/test-utils";
|
||||
@ -14,7 +14,7 @@ describe("when-app-is-ready", () => {
|
||||
beforeEach(() => {
|
||||
di = createContainer("irrelevant");
|
||||
|
||||
registerFeature(di, feature);
|
||||
registerFeature(di, applicationFeatureForElectronMain);
|
||||
|
||||
whenReadyMock = asyncFn();
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ import {
|
||||
getInjectable,
|
||||
} from "@ogre-tools/injectable";
|
||||
import { registerFeature } from "@k8slens/feature-core";
|
||||
import { feature } from "./feature";
|
||||
import { applicationFeatureForElectronMain } from "./applicationFeatureForElectronMain";
|
||||
import {
|
||||
beforeApplicationIsLoadingInjectionToken,
|
||||
startApplicationInjectionToken,
|
||||
@ -30,7 +30,7 @@ describe("starting-of-electron-main-application", () => {
|
||||
beforeApplicationIsLoadingMock = asyncFn();
|
||||
whenAppIsReadyMock = asyncFn();
|
||||
|
||||
registerFeature(di, feature);
|
||||
registerFeature(di, applicationFeatureForElectronMain);
|
||||
|
||||
const beforeAnythingIsLoadingInjectable = getInjectable({
|
||||
id: "before-anything",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user