func TestGetDataHomeFromVariable(t *testing.T) {
	tmp := os.Getenv("XDG_DATA_HOME")
	os.Setenv("XDG_DATA_HOME", "/tmp/foo")

	d := userdir.GetDataHome()
	require.Equal(t, "/tmp/foo", d)

	os.Setenv("XDG_DATA_HOME", tmp)
}
func TestGetDataHome(t *testing.T) {
	d := userdir.GetDataHome()
	require.True(t, strings.HasSuffix(d, "AppData/Roaming"))
}
func TestGetDataHome(t *testing.T) {
	d := userdir.GetDataHome()
	require.True(t, strings.HasSuffix(d, "Library"))
}
func TestGetDataHome(t *testing.T) {
	d := userdir.GetDataHome()
	require.True(t, strings.HasSuffix(d, ".local/share"))
}