Removing artifacts from tests to check what would happen if HOME and XDG_CONFIG_HOME are undefined

pull/58/head
Jacob Biehler 4 years ago
parent b7ede5a57b
commit f56d0a61b1

@ -15,15 +15,9 @@ func TestNormalizePath(t *testing.T) {
}{
{"~/.config/cointop/config.toml", filepath.Join(configDir, "/cointop/config.toml")},
{"~/.config/cointop/config.toml", filepath.Join(home, ".config/cointop/config.toml")},
{"~/.config/cointop/config.toml", filepath.Join(configDir, "/cointop/config.toml")},
{"~/.config/cointop/config.toml", filepath.Join(home, ".config/cointop/config.toml")},
}
for i, c := range cases {
for _, c := range cases {
got := NormalizePath(c.in)
if i > 1 {
home = ""
configDir = ""
}
if got != c.want {
t.Errorf("NormalizePath(%q) == %q, want %q", c.in, got, c.want)
}

Loading…
Cancel
Save