wings/config/config_test.go

16 lines
275 B
Go
Raw Normal View History

2017-06-26 19:04:11 +00:00
package config
import (
"testing"
"github.com/stretchr/testify/assert"
)
var configFile = "../config.example.json"
func TestLoadConfiguraiton(t *testing.T) {
err := LoadConfiguration(&configFile)
assert.Nil(t, err)
assert.Equal(t, Get().Web.ListenHost, "0.0.0.0")
}