package service

import (
	"strings"
	"testing"

	"github.com/stretchr/testify/require"
)

func TestDirs(t *testing.T) {
	env, err := NewEnv("KeysTest")
	require.NoError(t, err)
	require.Equal(t, "KeysTest", env.AppName())

	appDir := env.AppDir()
	require.True(t, strings.HasSuffix(appDir, `\AppData\Local\KeysTest`))
	logsDir := env.LogsDir()
	require.True(t, strings.HasSuffix(logsDir, `\AppData\Local\KeysTest`))
}
