aboutsummaryrefslogtreecommitdiffhomepage
path: root/config/configLoader_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-08-10 21:05:17 +0200
committerBjørn Erik Pedersen <[email protected]>2019-08-12 13:26:32 +0200
commit9e571827055dedb46b78c5db3d17d6913f14870b (patch)
treef5f0108afe0c9385ff6dc27664943d9f719f57ad /config/configLoader_test.go
parent6027ee11082d0b9d72de1d4d1980a702be294ad2 (diff)
downloadhugo-9e571827055dedb46b78c5db3d17d6913f14870b.tar.gz
hugo-9e571827055dedb46b78c5db3d17d6913f14870b.zip
tests: Convert from testify to quicktest
Diffstat (limited to 'config/configLoader_test.go')
-rw-r--r--config/configLoader_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/config/configLoader_test.go b/config/configLoader_test.go
index 06a00df3b..546031334 100644
--- a/config/configLoader_test.go
+++ b/config/configLoader_test.go
@@ -17,18 +17,18 @@ import (
"strings"
"testing"
- "github.com/stretchr/testify/require"
+ qt "github.com/frankban/quicktest"
)
func TestIsValidConfigFileName(t *testing.T) {
- assert := require.New(t)
+ c := qt.New(t)
for _, ext := range ValidConfigFileExtensions {
filename := "config." + ext
- assert.True(IsValidConfigFilename(filename), ext)
- assert.True(IsValidConfigFilename(strings.ToUpper(filename)))
+ c.Assert(IsValidConfigFilename(filename), qt.Equals, true)
+ c.Assert(IsValidConfigFilename(strings.ToUpper(filename)), qt.Equals, true)
}
- assert.False(IsValidConfigFilename(""))
- assert.False(IsValidConfigFilename("config.toml.swp"))
+ c.Assert(IsValidConfigFilename(""), qt.Equals, false)
+ c.Assert(IsValidConfigFilename("config.toml.swp"), qt.Equals, false)
}