1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Fixed some tests

This commit is contained in:
mjarkk
2018-10-31 17:36:20 +01:00
parent 78b2bc4f60
commit 5532289086

View File

@ -89,7 +89,7 @@ func TestVerifyInGitRepo(t *testing.T) {
},
func(err error) {
assert.Error(t, err)
assert.Regexp(t, "fatal: .ot a git repository \\(or any of the parent directories\\): \\.git", err.Error())
assert.Regexp(t, `fatal: .ot a git repository \(or any of the parent directories\s?\/?\): \.git`, err.Error())
},
},
}
@ -247,7 +247,7 @@ func TestNewGitCommand(t *testing.T) {
},
func(gitCmd *GitCommand, err error) {
assert.Error(t, err)
assert.Regexp(t, "fatal: .ot a git repository \\(or any of the parent directories\\): \\.git", err.Error())
assert.Regexp(t, `fatal: .ot a git repository ((\(or any of the parent directories \): \.git)|(\(or any parent up to mount point \/\)))`, err.Error())
},
},
{