ja/init_test.go
2024-07-28 13:58:14 +08:00

18 lines
295 B
Go

package main
import (
"os"
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
)
func TestCreateWorkDir(t *testing.T) {
homeDir, err := os.UserHomeDir()
assert.NoError(t, err)
t.Logf("homeDir: %s", homeDir)
join := filepath.Join(homeDir, ".ja")
t.Logf("join: %s", join)
}