mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 14:22:49 +08:00
21 lines
382 B
Go
21 lines
382 B
Go
package plugins
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
func TestPluginScans(t *testing.T) {
|
|
|
|
Convey("When scaning for plugins", t, func() {
|
|
setting.StaticRootPath = filepath.Abs("../../public/")
|
|
err := Init()
|
|
|
|
So(err, ShouldBeNil)
|
|
So(len(DataSources), ShouldBeGreaterThan, 1)
|
|
})
|
|
}
|