The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/internal/registry/registry_test.go

16 lines
300 B

package registry
import (
"testing"
"github.com/harmony-one/harmony/core"
"github.com/stretchr/testify/require"
)
func TestRegistry(t *testing.T) {
registry := New()
require.Nil(t, registry.GetBlockchain())
registry.SetBlockchain(core.Stub{})
require.NotNil(t, registry.GetBlockchain())
}