mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
commands: t.Error => t.Errorf
This commit is contained in:
@@ -52,7 +52,7 @@ func TestUndraftContent(t *testing.T) {
|
||||
res, err := undraftContent(p)
|
||||
if test.expectedErr != "" {
|
||||
if err == nil {
|
||||
t.Error("[%d] Expected error, got none", i)
|
||||
t.Errorf("[%d] Expected error, got none", i)
|
||||
continue
|
||||
}
|
||||
if err.Error() != test.expectedErr {
|
||||
|
Reference in New Issue
Block a user