laconicd/x/bond/module_test.go
2022-10-10 16:08:33 +05:30

22 lines
617 B
Go

package bond_test
import (
"testing"
app "github.com/cerc-io/laconicd/app"
bondtypes "github.com/cerc-io/laconicd/x/bond/types"
"github.com/cosmos/cosmos-sdk/simapp"
"github.com/stretchr/testify/require"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
)
func TestItCreatesModuleAccountOnInitBlock(t *testing.T) {
app := app.Setup(false, func(ea *app.EthermintApp, genesis simapp.GenesisState) simapp.GenesisState {
return genesis
})
ctx := app.BaseApp.NewContext(false, tmproto.Header{})
acc := app.AccountKeeper.GetModuleAccount(ctx, bondtypes.ModuleName)
require.NotNil(t, acc)
}