github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/stellar/bundle/bundle_test.go (about)

     1  package bundle
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/require"
     7  )
     8  
     9  // TestInitialBundle makes sure we can make a brand-new account bundle
    10  // with a new random secret.
    11  func TestInitialBundle(t *testing.T) {
    12  	b, err := NewInitial("hello")
    13  	require.NoError(t, err)
    14  	require.NotNil(t, b)
    15  	require.Len(t, b.Accounts, 1)
    16  	require.Len(t, b.AccountBundles, 1)
    17  }