mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix typing error
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
e5f53e1616
commit
514e5461d5
@ -30,17 +30,19 @@ describe("router", () => {
|
|||||||
|
|
||||||
await di.runSetups();
|
await di.runSetups();
|
||||||
|
|
||||||
di.register(getInjectable({
|
const injectable = getInjectable({
|
||||||
id: "some-route",
|
id: "some-route",
|
||||||
|
|
||||||
instantiate: (): Route<any> => ({
|
instantiate: () => ({
|
||||||
method: "get",
|
method: "get",
|
||||||
path: "/some-path",
|
path: "/some-path",
|
||||||
handler: routeHandlerMock,
|
handler: routeHandlerMock,
|
||||||
}),
|
} as Route<any>),
|
||||||
|
|
||||||
injectionToken: routeInjectionToken,
|
injectionToken: routeInjectionToken,
|
||||||
}));
|
});
|
||||||
|
|
||||||
|
di.register(injectable);
|
||||||
|
|
||||||
router = di.inject(routerInjectable);
|
router = di.inject(routerInjectable);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user