1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-19 00:28:03 +02:00

rename input to t

This commit is contained in:
Jesse Duffield
2022-12-27 21:35:36 +11:00
parent 53e06b71ae
commit 78b495f50a
45 changed files with 376 additions and 399 deletions

View File

@ -14,10 +14,10 @@ var Commit = NewIntegrationTest(NewIntegrationTestArgs{
shell.CreateFile("myfile", "myfile content")
shell.CreateFile("myfile2", "myfile2 content")
},
Run: func(shell *Shell, input *Input, keys config.KeybindingConfig) {
input.Model().CommitCount(0)
Run: func(shell *Shell, t *TestDriver, keys config.KeybindingConfig) {
t.Model().CommitCount(0)
input.Views().Files().
t.Views().Files().
IsFocused().
PressPrimaryAction(). // stage file
SelectNextItem().
@ -26,9 +26,9 @@ var Commit = NewIntegrationTest(NewIntegrationTestArgs{
commitMessage := "my commit message"
input.ExpectCommitMessagePanel().Type(commitMessage).Confirm()
t.ExpectCommitMessagePanel().Type(commitMessage).Confirm()
input.Model().
t.Model().
CommitCount(1).
HeadCommitMessage(Equals(commitMessage))
},