1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix test failures

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-12-21 08:48:53 -05:00
parent ea49929e78
commit 0e1b2c0b6f
2 changed files with 2 additions and 3 deletions

View File

@ -4,8 +4,7 @@
*/
import type { MessageChannel } from "../../../common/utils/channel/message-channel-listener-injection-token";
import type { Location } from "history";
export const windowLocationChangedChannel: MessageChannel<Location> = {
export const windowLocationChangedChannel: MessageChannel<void> = {
id: "window-location-changed",
};

View File

@ -14,7 +14,7 @@ const emitWindowLocationChangedInjectable = getInjectable({
instantiate: (di): EmitWindowLocationChanged => {
const sendMessageToChannel = di.inject(sendMessageToChannelInjectionToken);
return (location) => sendMessageToChannel(windowLocationChangedChannel, location);
return () => sendMessageToChannel(windowLocationChangedChannel);
},
});