Fix test failures

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-01-10 15:18:12 -05:00
1 parent ea49929e78
commit 0e1b2c0b6f
2 files changed
+2 -3

No files matched your search

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