1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

refactor to not have Match at the start of assert method names, because it reads better that way

This commit is contained in:
Jesse Duffield
2022-12-24 17:01:26 +11:00
parent c19f52255c
commit aedfce2845
36 changed files with 208 additions and 208 deletions

View File

@ -24,19 +24,19 @@ var Reset = NewIntegrationTest(NewIntegrationTestArgs{
input.SwitchToBranchesWindow()
assert.CurrentViewName("localBranches")
assert.MatchSelectedLine(Contains("current-branch"))
assert.SelectedLine(Contains("current-branch"))
input.NextItem()
assert.MatchSelectedLine(Contains("other-branch"))
assert.SelectedLine(Contains("other-branch"))
input.PressKeys(keys.Commits.ViewResetOptions)
assert.InMenu()
assert.MatchCurrentViewTitle(Contains("reset to other-branch"))
assert.CurrentViewTitle(Contains("reset to other-branch"))
assert.MatchSelectedLine(Contains("soft reset"))
assert.SelectedLine(Contains("soft reset"))
input.NextItem()
assert.MatchSelectedLine(Contains("mixed reset"))
assert.SelectedLine(Contains("mixed reset"))
input.NextItem()
assert.MatchSelectedLine(Contains("hard reset"))
assert.SelectedLine(Contains("hard reset"))
input.Confirm()
@ -47,8 +47,8 @@ var Reset = NewIntegrationTest(NewIntegrationTestArgs{
input.SwitchToCommitsWindow()
assert.CurrentViewName("commits")
assert.CommitCount(2)
assert.MatchSelectedLine(Contains("other-branch commit"))
assert.SelectedLine(Contains("other-branch commit"))
input.NextItem()
assert.MatchSelectedLine(Contains("root commit"))
assert.SelectedLine(Contains("root commit"))
},
})