summaryrefslogtreecommitdiffstats
path: root/hugolib/datafiles_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-10 21:05:17 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-12 13:26:32 +0200
commit9e571827055dedb46b78c5db3d17d6913f14870b (patch)
treef5f0108afe0c9385ff6dc27664943d9f719f57ad /hugolib/datafiles_test.go
parent6027ee11082d0b9d72de1d4d1980a702be294ad2 (diff)
tests: Convert from testify to quicktest
Diffstat (limited to 'hugolib/datafiles_test.go')
-rw-r--r--hugolib/datafiles_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/datafiles_test.go b/hugolib/datafiles_test.go
index b65183a8a..699cf9cd8 100644
--- a/hugolib/datafiles_test.go
+++ b/hugolib/datafiles_test.go
@@ -16,7 +16,6 @@ package hugolib
import (
"path/filepath"
"reflect"
- "strings"
"testing"
"github.com/gohugoio/hugo/common/loggers"
@@ -26,7 +25,7 @@ import (
"fmt"
"runtime"
- "github.com/stretchr/testify/require"
+ qt "github.com/frankban/quicktest"
)
func TestDataDir(t *testing.T) {
@@ -377,6 +376,7 @@ func TestDataFromShortcode(t *testing.T) {
var (
cfg, fs = newTestCfg()
+ c = qt.New(t)
)
writeSource(t, fs, "data/hugo.toml", "slogan = \"Hugo Rocks!\"")
@@ -392,7 +392,7 @@ Slogan from shortcode: {{< d >}}
buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{})
content := readSource(t, fs, "public/c/index.html")
- require.True(t, strings.Contains(content, "Slogan from template: Hugo Rocks!"), content)
- require.True(t, strings.Contains(content, "Slogan from shortcode: Hugo Rocks!"), content)
+ c.Assert(content, qt.Contains, "Slogan from template: Hugo Rocks!")
+ c.Assert(content, qt.Contains, "Slogan from shortcode: Hugo Rocks!")
}