github.com/gravity-devs/liquidity@v1.5.3/x/liquidity/module_test.go (about) 1 package liquidity_test 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/require" 7 abcitypes "github.com/tendermint/tendermint/abci/types" 8 tmproto "github.com/tendermint/tendermint/proto/tendermint/types" 9 10 lapp "github.com/gravity-devs/liquidity/app" 11 ) 12 13 func TestItCreatesModuleAccountOnInitBlock(t *testing.T) { 14 app := lapp.Setup(false) 15 ctx := app.BaseApp.NewContext(false, tmproto.Header{}) 16 17 app.InitChain( 18 abcitypes.RequestInitChain{ 19 AppStateBytes: []byte("{}"), 20 ChainId: "test-chain-id", 21 }, 22 ) 23 params := app.LiquidityKeeper.GetParams(ctx) 24 require.NotNil(t, params) 25 }