dashboard_test.go 308 B

123456789101112131415161718
  1. package models
  2. import (
  3. "testing"
  4. . "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestDashboardModel(t *testing.T) {
  7. Convey("When generating slug", t, func() {
  8. dashboard := NewDashboard("Grafana Play Home")
  9. dashboard.UpdateSlug()
  10. So(dashboard.Slug, ShouldEqual, "grafana-play-home")
  11. })
  12. }