mirror of
https://github.com/OliveTin/OliveTin
synced 2026-09-22 01:35:40 +00:00
Search additional dirs for the webui dir
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user