mirror of
https://github.com/gopasspw/gopass.git
synced 2025-12-08 19:24:54 +00:00
RELEASE_NOTES=n/a Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
15 lines
199 B
Go
15 lines
199 B
Go
package appdir
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestUserHome(t *testing.T) {
|
|
td := t.TempDir()
|
|
t.Setenv("GOPASS_HOMEDIR", td)
|
|
|
|
assert.Equal(t, td, UserHome())
|
|
}
|