diff --git a/src/features/application-update/renderer/restart-and-install-update.injectable.ts b/src/features/application-update/renderer/restart-and-install-update.injectable.ts
index 2502a599a2..2b458fb4f6 100644
--- a/src/features/application-update/renderer/restart-and-install-update.injectable.ts
+++ b/src/features/application-update/renderer/restart-and-install-update.injectable.ts
@@ -4,13 +4,13 @@
*/
import { getInjectable } from "@ogre-tools/injectable";
import { restartAndInstallUpdateChannel } from "../common/restart-and-install-update-channel";
-import messageToChannelInjectable from "../../../renderer/utils/channel/message-to-channel.injectable";
+import sendMessageToChannelInjectable from "../../../renderer/utils/channel/message-to-channel.injectable";
const restartAndInstallUpdateInjectable = getInjectable({
id: "restart-and-install-update",
instantiate: (di) => {
- const messageToChannel = di.inject(messageToChannelInjectable);
+ const messageToChannel = di.inject(sendMessageToChannelInjectable);
return () => {
messageToChannel(restartAndInstallUpdateChannel);
diff --git a/src/main/utils/channel/message-to-channel.injectable.ts b/src/main/utils/channel/message-to-channel.injectable.ts
index 392120509d..2827392225 100644
--- a/src/main/utils/channel/message-to-channel.injectable.ts
+++ b/src/main/utils/channel/message-to-channel.injectable.ts
@@ -8,8 +8,8 @@ import { sendMessageToChannelInjectionToken } from "../../../common/utils/channe
import getVisibleWindowsInjectable from "../../start-main-application/lens-window/get-visible-windows.injectable";
import clusterFramesInjectable from "../../../common/cluster-frames.injectable";
-const messageToChannelInjectable = getInjectable({
- id: "message-to-channel",
+const sendMessageToChannelInjectable = getInjectable({
+ id: "send-message-to-channel",
instantiate: (di) => {
const getVisibleWindows = di.inject(getVisibleWindowsInjectable);
@@ -29,4 +29,4 @@ const messageToChannelInjectable = getInjectable({
injectionToken: sendMessageToChannelInjectionToken,
});
-export default messageToChannelInjectable;
+export default sendMessageToChannelInjectable;
diff --git a/src/renderer/components/layout/top-bar/top-bar.test.tsx b/src/renderer/components/layout/top-bar/top-bar.test.tsx
index f911ec615a..8cc2883ff1 100644
--- a/src/renderer/components/layout/top-bar/top-bar.test.tsx
+++ b/src/renderer/components/layout/top-bar/top-bar.test.tsx
@@ -22,6 +22,7 @@ import platformInjectable from "../../../../common/vars/platform.injectable";
import goForwardInjectable from "./top-bar-items/navigation-to-forward/go-forward/go-forward.injectable";
import currentlyInClusterFrameInjectable from "../../../routes/currently-in-cluster-frame.injectable";
import topBarStateInjectable from "../../../../features/top-bar/common/state.injectable";
+import sendMessageToChannelInjectable from "../../../utils/channel/message-to-channel.injectable";
describe("", () => {
let di: DiContainer;
@@ -44,6 +45,7 @@ describe("", () => {
di.override(maximizeWindowInjectable, () => maximizeWindow = jest.fn());
di.override(toggleMaximizeWindowInjectable, () => toggleMaximizeWindow = jest.fn());
di.override(currentlyInClusterFrameInjectable, () => false);
+ di.override(sendMessageToChannelInjectable, () => () => {});
render = renderFor(di);
});
diff --git a/src/renderer/utils/channel/message-to-channel.injectable.ts b/src/renderer/utils/channel/message-to-channel.injectable.ts
index eab7e4ec7f..5b25710dfa 100644
--- a/src/renderer/utils/channel/message-to-channel.injectable.ts
+++ b/src/renderer/utils/channel/message-to-channel.injectable.ts
@@ -7,8 +7,8 @@ import type { SendMessageToChannel } from "../../../common/utils/channel/message
import { sendMessageToChannelInjectionToken } from "../../../common/utils/channel/message-to-channel-injection-token";
import sendToMainInjectable from "./send-to-main.injectable";
-const messageToChannelInjectable = getInjectable({
- id: "message-to-channel",
+const sendMessageToChannelInjectable = getInjectable({
+ id: "send-message-to-channel",
instantiate: (di) => {
const sendToMain = di.inject(sendToMainInjectable);
@@ -21,4 +21,4 @@ const messageToChannelInjectable = getInjectable({
injectionToken: sendMessageToChannelInjectionToken,
});
-export default messageToChannelInjectable;
+export default sendMessageToChannelInjectable;