mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
commands: t.Error => t.Errorf
This commit is contained in:
parent
f039e3be9e
commit
5f443bd45b
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ func TestUndraftContent(t *testing.T) {
|
||||||
res, err := undraftContent(p)
|
res, err := undraftContent(p)
|
||||||
if test.expectedErr != "" {
|
if test.expectedErr != "" {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Error("[%d] Expected error, got none", i)
|
t.Errorf("[%d] Expected error, got none", i)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if err.Error() != test.expectedErr {
|
if err.Error() != test.expectedErr {
|
||||||
|
|
Loading…
Reference in a new issue