Skip to content

Commit

Permalink
Removed invalid test
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM committed Jan 13, 2020
1 parent beb1072 commit 8de38f1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions x/posts/internal/types/msgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,6 @@ func TestMsgCreatePost_GetSignBytes(t *testing.T) {
}
}

func TestMsgCreatePost_ReadJson(t *testing.T) {
json := `{"type":"desmos/MsgCreatePost","value":{"parent_id":"0","message":"Hello!","allows_comments":true,"subspace":"desmos","creator":"cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns","creation_date":"2020-01-13T14:01:43.234441649+01:00"}}`

var msg types.MsgCreatePost
types.ModuleCdc.MustUnmarshalJSON([]byte(json), &msg)
assert.Equal(t, "Hello!", msg.Message)
}

func TestMsgCreatePost_GetSigners(t *testing.T) {
actual := msgCreatePost.GetSigners()
assert.Equal(t, 1, len(actual))
Expand Down

0 comments on commit 8de38f1

Please sign in to comment.