mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix failing deep linking router test
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
d1d04676e9
commit
a3a705c90a
@ -25,6 +25,7 @@ import type { InternalRouteRegistration } from "../../../features/deep-linking/c
|
|||||||
import { internalDeepLinkingRouteInjectionToken } from "../../../features/deep-linking/common/internal-handler-token";
|
import { internalDeepLinkingRouteInjectionToken } from "../../../features/deep-linking/common/internal-handler-token";
|
||||||
import { LensMainExtension } from "../../../extensions/lens-main-extension";
|
import { LensMainExtension } from "../../../extensions/lens-main-extension";
|
||||||
import type { LensExtensionId } from "../../../features/extensions/common/installed-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 {
|
function throwIfDefined(val: any): void {
|
||||||
if (val != null) {
|
if (val != null) {
|
||||||
@ -337,7 +338,11 @@ describe("protocol router tests", () => {
|
|||||||
injectionToken: internalDeepLinkingRouteInjectionToken,
|
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 () => {
|
it("should call most exact handler with 3 found handlers", async () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user