mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 03:02:31 +08:00
Began work on plugin system
This commit is contained in:
19
pkg/plugins/plugins_test.go
Normal file
19
pkg/plugins/plugins_test.go
Normal file
@ -0,0 +1,19 @@
|
||||
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("../../src/app/plugins")
|
||||
err := Scan(path)
|
||||
|
||||
So(err, ShouldBeNil)
|
||||
So(len(List), ShouldEqual, 1)
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user