mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 19:30:36 -06:00
19 lines
308 B
Go
19 lines
308 B
Go
package models
|
|
|
|
import (
|
|
"testing"
|
|
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
func TestDashboardModel(t *testing.T) {
|
|
|
|
Convey("When generating slug", t, func() {
|
|
dashboard := NewDashboard("Grafana Play Home")
|
|
dashboard.UpdateSlug()
|
|
|
|
So(dashboard.Slug, ShouldEqual, "grafana-play-home")
|
|
})
|
|
|
|
}
|