mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
tests: Convert from testify to quicktest
This commit is contained in:
@@ -16,16 +16,16 @@ package hugolib
|
||||
import (
|
||||
"testing"
|
||||
|
||||
qt "github.com/frankban/quicktest"
|
||||
"github.com/spf13/cast"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestFileInfo(t *testing.T) {
|
||||
t.Run("String", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
assert := require.New(t)
|
||||
c := qt.New(t)
|
||||
fi := &fileInfo{}
|
||||
_, err := cast.ToStringE(fi)
|
||||
assert.NoError(err)
|
||||
c.Assert(err, qt.IsNil)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user