mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-13 05:15:53 +02:00
cleaner test assertions
This commit is contained in:
parent
fa0414777f
commit
9a6f21ce42
34 changed files with 442 additions and 378 deletions
|
@ -20,8 +20,7 @@ var NewBranch = NewIntegrationTest(NewIntegrationTestArgs{
|
|||
assert.CommitCount(3)
|
||||
|
||||
input.SwitchToCommitsWindow()
|
||||
assert.CurrentViewName("commits")
|
||||
assert.CurrentViewLines(
|
||||
assert.CurrentView().Name("commits").Lines(
|
||||
Contains("commit 3"),
|
||||
Contains("commit 2"),
|
||||
Contains("commit 1"),
|
||||
|
@ -35,7 +34,7 @@ var NewBranch = NewIntegrationTest(NewIntegrationTestArgs{
|
|||
|
||||
assert.CurrentBranchName(branchName)
|
||||
|
||||
assert.ViewLines("commits",
|
||||
assert.View("commits").Lines(
|
||||
Contains("commit 2"),
|
||||
Contains("commit 1"),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue