Files
OliveTin/internal/httpservers/webuiServer_test.go
T

19 lines
369 B
Go

package httpservers
import (
"github.com/stretchr/testify/assert"
"os"
"testing"
config "github.com/OliveTin/OliveTin/internal/config"
)
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")
}