1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-03 12:22:34 +03:00

Pass cmdObj instead of task to processOutput

This is a preparation for the next commit, where we will need more from the
cmdObj in processOutput.
This commit is contained in:
Stefan Haller
2025-05-23 15:02:48 +02:00
parent c4bfdaeaf3
commit 75a8c0c73e
2 changed files with 5 additions and 5 deletions

View File

@ -120,8 +120,8 @@ func TestProcessOutput(t *testing.T) {
reader := strings.NewReader(scenario.output)
writer := &strings.Builder{}
task := gocui.NewFakeTask()
runner.processOutput(reader, writer, toChanFn(scenario.promptUserForCredential), task)
cmdObj := &CmdObj{task: gocui.NewFakeTask()}
runner.processOutput(reader, writer, toChanFn(scenario.promptUserForCredential), cmdObj)
if writer.String() != scenario.expectedToWrite {
t.Errorf("expected to write '%s' but got '%s'", scenario.expectedToWrite, writer.String())