Skip to content

Commit

Permalink
fix: Tests
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>
  • Loading branch information
mrexox committed Oct 14, 2022
1 parent 1524b3f commit 61ac528
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/lefthook/runner/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61ac528

Please sign in to comment.