mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 05:43:00 +08:00
23 lines
369 B
Go
23 lines
369 B
Go
package setting
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
func TestLoadingSettings(t *testing.T) {
|
|
|
|
WorkDir, _ = filepath.Abs("../../")
|
|
|
|
Convey("Testing loading settings from ini file", t, func() {
|
|
|
|
Convey("Given the default ini files", func() {
|
|
NewConfigContext()
|
|
|
|
So(AppName, ShouldEqual, "Grafana")
|
|
})
|
|
})
|
|
}
|