diff --git a/modules/apps/27-interchain-accounts/types/keys_test.go b/modules/apps/27-interchain-accounts/types/keys_test.go new file mode 100644 index 00000000000..6131adcff2e --- /dev/null +++ b/modules/apps/27-interchain-accounts/types/keys_test.go @@ -0,0 +1,20 @@ +package types_test + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/require" + + "github.com/cosmos/ibc-go/modules/apps/27-interchain-accounts/types" +) + +func TestKeyActiveChannel(t *testing.T) { + key := types.KeyActiveChannel("owner") + require.Equal(t, string(key), "activeChannel/owner") +} + +func TestGetIdentifier(t *testing.T) { + identifier := types.GetIdentifier(types.PortID, "channel-0") + require.Equal(t, identifier, fmt.Sprintf("%s/channel-0/", types.PortID)) +}