Skip to content

Commit

Permalink
api: Fix c07f574 broken tests
Browse files Browse the repository at this point in the history
Closes #395.
  • Loading branch information
diamondburned committed Jun 8, 2023
1 parent 176d992 commit 2b0395a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/send_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestMarshalAllowedMentions(t *testing.T) {
},
}

if j := mustMarshal(t, data); j != `{"allowed_mentions":{"parse":[]}}` {
if j := mustMarshal(t, data); j != `{"allowed_mentions":{"parse":[]},"flags":0}` {
t.Fatal("Unexpected JSON:", j)
}
})
Expand All @@ -27,7 +27,7 @@ func TestMarshalAllowedMentions(t *testing.T) {
Content: "a",
}

if j := mustMarshal(t, data); j != `{"content":"a"}` {
if j := mustMarshal(t, data); j != `{"content":"a","flags":0}` {
t.Fatal("Unexpected JSON:", j)
}
})
Expand All @@ -39,7 +39,7 @@ func TestMarshalAllowedMentions(t *testing.T) {
},
}

if j := mustMarshal(t, data); j != `{"allowed_mentions":{"parse":null,"users":["1","2"]}}` {
if j := mustMarshal(t, data); j != `{"allowed_mentions":{"parse":null,"users":["1","2"]},"flags":0}` {
t.Fatal("Unexpected JSON:", j)
}
})
Expand Down

0 comments on commit 2b0395a

Please sign in to comment.