1
0
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:
Janne Savolainen 2022-03-04 07:42:06 +02:00
parent e5f53e1616
commit 514e5461d5
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

View File

@ -30,17 +30,19 @@ describe("router", () => {
await di.runSetups();
di.register(getInjectable({
const injectable = getInjectable({
id: "some-route",
instantiate: (): Route<any> => ({
instantiate: () => ({
method: "get",
path: "/some-path",
handler: routeHandlerMock,
}),
} as Route<any>),
injectionToken: routeInjectionToken,
}));
});
di.register(injectable);
router = di.inject(routerInjectable);
});