1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

Support matchers on integers in integration tests

This commit is contained in:
Jesse Duffield
2023-06-03 15:12:31 +10:00
parent e98935f83e
commit dd34adb36c
15 changed files with 220 additions and 146 deletions

View File

@ -22,7 +22,7 @@ func retryWaitTimes() []int {
}
}
func (self *assertionHelper) matchString(matcher *Matcher, context string, getValue func() string) {
func (self *assertionHelper) matchString(matcher *TextMatcher, context string, getValue func() string) {
self.assertWithRetries(func() (bool, string) {
value := getValue()
return matcher.context(context).test(value)