mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +00:00
23 lines
613 B
Go
23 lines
613 B
Go
|
package community_test
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/require"
|
||
|
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
|
||
|
|
||
|
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||
|
"github.com/kava-labs/kava/app"
|
||
|
"github.com/kava-labs/kava/x/community/types"
|
||
|
)
|
||
|
|
||
|
func TestItCreatesModuleAccountOnInitBlock(t *testing.T) {
|
||
|
tApp := app.NewTestApp()
|
||
|
ctx := tApp.NewContext(true, tmproto.Header{Height: 1})
|
||
|
tApp.InitializeFromGenesisStates()
|
||
|
|
||
|
accKeeper := tApp.GetAccountKeeper()
|
||
|
acc := accKeeper.GetAccount(ctx, authtypes.NewModuleAddress(types.ModuleName))
|
||
|
require.NotNil(t, acc)
|
||
|
}
|