Fix typing error

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen committed 2022-03-11 09:30:33 +02:00
1 parent e5f53e1616
commit 514e5461d5
1 file changed
+6 -4
+6 -4
View File
@@ -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);
}); });