13 lines
220 B
Go
13 lines
220 B
Go
package main
|
|
|
|
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)
|
|
}
|
|
}
|