1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-13 01:30:53 +02:00

rename SelectedLine to CurrentLine in tests

This commit is contained in:
Jesse Duffield
2022-12-26 10:42:19 +11:00
parent 5d2584a188
commit fa0414777f
22 changed files with 41 additions and 41 deletions

View File

@ -143,7 +143,7 @@ func (self *Assert) InListContext() {
})
}
func (self *Assert) SelectedLine(matcher *matcher) {
func (self *Assert) CurrentLine(matcher *matcher) {
self.matchString(matcher, "Unexpected selected line.",
func() string {
return self.gui.CurrentContext().GetView().SelectedLine()
@ -151,7 +151,7 @@ func (self *Assert) SelectedLine(matcher *matcher) {
)
}
func (self *Assert) SelectedLineIdx(expected int) {
func (self *Assert) CurrentLineIdx(expected int) {
self.assertWithRetries(func() (bool, string) {
actual := self.gui.CurrentContext().GetView().SelectedLineIdx()
return expected == actual, fmt.Sprintf("Expected selected line index to be %d, got %d", expected, actual)