From 5e620bcb18d7f17291f7447a40b6d60b6b223477 Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Tue, 4 Oct 2016 16:08:51 +0300 Subject: [PATCH] Do not try to resolve hookArgs When we validate the hook arguments we try to resolve all of them but there is one argument which is not registered in the injector - hookArgs. If some hook wants to use it we will try to resolve it and fail. The solution is to skip the validation for the hookArgs argument. --- lib/common | 2 +- test/stubs.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/common b/lib/common index ea26544a3f..5442024958 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit ea26544a3f04dcb14042258b41d3320035ca0f0b +Subproject commit 544202495845bbeaf3262513ec064f2c397a49d7 diff --git a/test/stubs.ts b/test/stubs.ts index bd79a1de9a..a7dcc5f744 100644 --- a/test/stubs.ts +++ b/test/stubs.ts @@ -410,6 +410,8 @@ export class HooksServiceStub implements IHooksService { executeAfterHooks(commandName: string): IFuture { return Future.fromResult(); } + + hookArgsName = "hookArgs"; } export class LockFile {