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:
parent
ea49929e78
commit
0e1b2c0b6f
@ -4,8 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import type { MessageChannel } from "../../../common/utils/channel/message-channel-listener-injection-token";
|
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",
|
id: "window-location-changed",
|
||||||
};
|
};
|
||||||
|
|||||||
@ -14,7 +14,7 @@ const emitWindowLocationChangedInjectable = getInjectable({
|
|||||||
instantiate: (di): EmitWindowLocationChanged => {
|
instantiate: (di): EmitWindowLocationChanged => {
|
||||||
const sendMessageToChannel = di.inject(sendMessageToChannelInjectionToken);
|
const sendMessageToChannel = di.inject(sendMessageToChannelInjectionToken);
|
||||||
|
|
||||||
return (location) => sendMessageToChannel(windowLocationChangedChannel, location);
|
return () => sendMessageToChannel(windowLocationChangedChannel);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user