Files
OliveTin/internal/httpservers/webuiServer_test.go
T
2023-08-24 12:11:28 +01:00

19 lines
368 B
Go

package httpservers
import (
config "github.com/OliveTin/OliveTin/internal/config"
"github.com/stretchr/testify/assert"
"os"
"testing"
)
func TestGetWebuiDir(t *testing.T) {
os.Chdir("../../") // go test sets the cwd to "httpservers" by default
cfg = config.DefaultConfig()
dir := findWebuiDir()
assert.Equal(t, "./webui", dir, "Finding the webui dir")
}