diff --git a/internal/lefthook/runner/runner_test.go b/internal/lefthook/runner/runner_test.go index 78d70e31..6f34e36c 100644 --- a/internal/lefthook/runner/runner_test.go +++ b/internal/lefthook/runner/runner_test.go @@ -15,13 +15,13 @@ import ( type TestExecutor struct{} -func (e TestExecutor) Execute(root string, args []string, interactive bool) (out *bytes.Buffer, err error) { +func (e TestExecutor) Execute(opts ExecuteOptions) (out *bytes.Buffer, err error) { out = bytes.NewBuffer(make([]byte, 0)) - if args[0] == "success" { + if opts.args[0] == "success" { err = nil } else { - err = errors.New(args[0]) + err = errors.New(opts.args[0]) } return