laconicd-deprecated/server/config/config_test.go

15 lines
309 B
Go
Raw Normal View History

2021-04-18 16:39:15 +00:00
package config
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestDefaultConfig(t *testing.T) {
cfg := DefaultConfig()
require.True(t, cfg.JSONRPC.Enable)
require.Equal(t, cfg.JSONRPC.Address, DefaultJSONRPCAddress)
require.Equal(t, cfg.JSONRPC.WsAddress, DefaultJSONRPCWsAddress)
2021-04-18 16:39:15 +00:00
}