Files
mattermost/testlib/resources_test.go
Jesse Hallam 6a906e91ad enable non-GOPATH testing with different mattermost-server folder name (#12930)
* enable non-GOPATH testing

Tweak the testlib package to support finding the root without assuming the folder name of the repository.

Fixes: MM-19729

* fix web tests
2019-11-06 14:46:51 -05:00

16 lines
264 B
Go

package testlib
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestFindDir(t *testing.T) {
t.Run("find root", func(t *testing.T) {
path, found := findDir(root)
assert.True(t, found, "failed to find root")
assert.NotEmpty(t, path)
})
}