mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 11:20:27 -06:00
41d432b5ae
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
21 lines
346 B
Go
21 lines
346 B
Go
package models
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"fmt"
|
|
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
func TestDashboardAclModel(t *testing.T) {
|
|
Convey("When printing a PermissionType", t, func() {
|
|
view := PERMISSION_VIEW
|
|
printed := fmt.Sprint(view)
|
|
|
|
Convey("Should output a friendly name", func() {
|
|
So(printed, ShouldEqual, "View")
|
|
})
|
|
})
|
|
}
|