package config import ( "os" fp "path/filepath" "testing" "github.com/nalgeon/be" ) func TestDefaultConfig(t *testing.T) { home, _ := os.UserHomeDir() inDir := fp.Join(home, "my-log") c, err := DefaultConfig() be.Err(t, err, nil) be.Equal(t, c.Input.Path, inDir) }