mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 11:02:41 +03:00
Cleanup: use assert.NoError
This commit is contained in:
@@ -80,9 +80,7 @@ git:
|
|||||||
for _, s := range scenarios {
|
for _, s := range scenarios {
|
||||||
t.Run(s.name, func(t *testing.T) {
|
t.Run(s.name, func(t *testing.T) {
|
||||||
actual, err := computeMigratedConfig("path doesn't matter", []byte(s.input))
|
actual, err := computeMigratedConfig("path doesn't matter", []byte(s.input))
|
||||||
if err != nil {
|
assert.NoError(t, err)
|
||||||
t.Error(err)
|
|
||||||
}
|
|
||||||
assert.Equal(t, s.expected, string(actual))
|
assert.Equal(t, s.expected, string(actual))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user