This commit is contained in:
maddalax 2024-11-01 06:05:50 -05:00
parent d544be6f04
commit 274df0534b

View file

@ -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)