1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +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

@ -26,7 +26,7 @@ func (self *FileSystem) PathNotPresent(path string) {
}
// Asserts that the file at the given path has the given content
func (self *FileSystem) FileContent(path string, matcher *Matcher) {
func (self *FileSystem) FileContent(path string, matcher *TextMatcher) {
self.assertWithRetries(func() (bool, string) {
_, err := os.Stat(path)
if os.IsNotExist(err) {