2021-04-18 16:39:15 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestDefaultConfig(t *testing.T) {
|
2021-08-16 09:45:10 +00:00
|
|
|
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
|
|
|
}
|