Beispiel #1
0
func TestLogoutDeletesConfigFile(t *testing.T) {
	tmpDir, err := ioutil.TempDir("", "")
	assert.NoError(t, err)

	c := configuration.Config{}

	configuration.ToFile(tmpDir, c)

	Logout(tmpDir)

	asserFileDoesNotExist(t, configuration.Filename(tmpDir))
}
Beispiel #2
0
func Logout(dir string) {
	os.Remove(configuration.Filename(dir))
}