mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +00:00
20 lines
550 B
Go
20 lines
550 B
Go
|
package keeper_test
|
||
|
|
||
|
import (
|
||
|
abci "github.com/tendermint/tendermint/abci/types"
|
||
|
|
||
|
"github.com/kava-labs/kava/x/issuance/keeper"
|
||
|
"github.com/kava-labs/kava/x/issuance/types"
|
||
|
)
|
||
|
|
||
|
func (suite *KeeperTestSuite) TestQuerierGetParams() {
|
||
|
querier := keeper.NewQuerier(suite.keeper)
|
||
|
bz, err := querier(suite.ctx, []string{types.QueryGetParams}, abci.RequestQuery{})
|
||
|
suite.Require().NoError(err)
|
||
|
suite.NotNil(bz)
|
||
|
|
||
|
var p types.Params
|
||
|
suite.Nil(types.ModuleCdc.UnmarshalJSON(bz, &p))
|
||
|
suite.Require().Equal(types.Params{Assets: types.Assets(nil)}, p)
|
||
|
}
|