test
This commit is contained in:
parent
d544be6f04
commit
274df0534b
1 changed files with 6 additions and 0 deletions
|
|
@ -82,6 +82,12 @@ func TestPublicAssetPath(t *testing.T) {
|
||||||
assert.Equal(t, "/assets", cfg.PublicAssetPath)
|
assert.Equal(t, "/assets", cfg.PublicAssetPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestConfigGet(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
cfg := Get()
|
||||||
|
assert.Equal(t, "/public", cfg.PublicAssetPath)
|
||||||
|
}
|
||||||
|
|
||||||
func writeConfigFile(t *testing.T, content string) string {
|
func writeConfigFile(t *testing.T, content string) string {
|
||||||
temp := os.TempDir()
|
temp := os.TempDir()
|
||||||
os.Mkdir(temp, 0755)
|
os.Mkdir(temp, 0755)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue