From a3a705c90abe9ac9250d429f63a70385d8242b2a Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 1 Mar 2023 08:51:04 -0500 Subject: [PATCH] Fix failing deep linking router test Signed-off-by: Sebastian Malton --- .../core/src/main/protocol-handler/__test__/router.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/core/src/main/protocol-handler/__test__/router.test.ts b/packages/core/src/main/protocol-handler/__test__/router.test.ts index 6226e24963..272af98163 100644 --- a/packages/core/src/main/protocol-handler/__test__/router.test.ts +++ b/packages/core/src/main/protocol-handler/__test__/router.test.ts @@ -25,6 +25,7 @@ import type { InternalRouteRegistration } from "../../../features/deep-linking/c import { internalDeepLinkingRouteInjectionToken } from "../../../features/deep-linking/common/internal-handler-token"; import { LensMainExtension } from "../../../extensions/lens-main-extension"; import type { LensExtensionId } from "../../../features/extensions/common/installed-extension"; +import internalDeepLinkingRoutesInjectable from "../../../features/deep-linking/common/internal-deep-linking-routes.injectable"; function throwIfDefined(val: any): void { if (val != null) { @@ -337,7 +338,11 @@ describe("protocol router tests", () => { injectionToken: internalDeepLinkingRouteInjectionToken, })); }); - }).toThrowError(); + + const internalDeepLinkingRoutes = di.inject(internalDeepLinkingRoutesInjectable); + + internalDeepLinkingRoutes.get(); + }).toThrowError("Missing parameter name at 1"); }); it("should call most exact handler with 3 found handlers", async () => {