Search additional dirs for the webui dir

This commit is contained in:
jamesread
2021-11-03 22:52:38 +00:00
parent 12475cd310
commit 3aa7c97bfb
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -3,9 +3,12 @@ package httpservers
import (
"github.com/stretchr/testify/assert"
"testing"
"os"
)
func TestGetWebuiDir(t *testing.T) {
os.Chdir("../../") // go test sets the cwd to "httpservers" by default
dir := findWebuiDir()
assert.Equal(t, "./webui", dir, "Finding the webui dir")