intimate/config_test.go

13 lines
224 B
Go
Raw Normal View History

2020-07-07 10:39:24 +00:00
package intimate
import "testing"
func TestConfig(t *testing.T) {
config := &Config{}
config.Load()
if config.Database.URI != "root:@tcp(127.0.0.1:4000)/intimate_source" {
t.Error("error yaml loaded, ", config)
}
}