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

combine assert and input structs, clean up interface

This commit is contained in:
Jesse Duffield
2022-12-27 16:27:36 +11:00
parent c5c9f5bb94
commit b166b8f776
47 changed files with 1021 additions and 912 deletions

View File

@ -24,15 +24,15 @@ var Basic = NewIntegrationTest(NewIntegrationTestArgs{
Run: func(
shell *Shell,
input *Input,
assert *Assert,
keys config.KeybindingConfig,
) {
assert.Model().WorkingTreeFileCount(0)
input.Model().WorkingTreeFileCount(0)
input.Press("a")
assert.Views().ByName("files").Lines(
Contains("myfile"),
)
input.Views().Files().
IsFocused().
Press("a").
Lines(
Contains("myfile"),
)
},
})