mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
Fix reporting of unexpected selections in integration tests (#3662)
Expected and actual selection were swapped in the error message.
This commit is contained in:
commit
629b7ba1b8
1 changed files with 1 additions and 1 deletions
|
@ -263,8 +263,8 @@ func (self *ViewDriver) assertLines(offset int, matchers ...*TextMatcher) *ViewD
|
|||
return false, fmt.Sprintf(
|
||||
"Unexpected selection in view '%s'. Expected %s to be selected but got %s.\nExpected selected lines:\n---\n%s\n---\n\nActual selected lines:\n---\n%s\n---\n",
|
||||
view.Name(),
|
||||
formatLineRange(startIdx, endIdx),
|
||||
formatLineRange(expectedStartIdx, expectedEndIdx),
|
||||
formatLineRange(startIdx, endIdx),
|
||||
strings.Join(expectedSelectedLines, "\n"),
|
||||
strings.Join(lines, "\n"),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue