mirror of
https://github.com/grafana/grafana.git
synced 2025-01-24 23:37:01 -06:00
20 lines
341 B
Go
20 lines
341 B
Go
package plugins
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
func TestPluginScans(t *testing.T) {
|
|
|
|
Convey("When scaning for plugins", t, func() {
|
|
path, _ := filepath.Abs("../../public/app/plugins")
|
|
err := scan(path)
|
|
|
|
So(err, ShouldBeNil)
|
|
So(len(DataSources), ShouldBeGreaterThan, 1)
|
|
})
|
|
}
|