api: Fix c07f574 broken tests

Closes #395.
This commit is contained in:
diamondburned 2023-06-07 18:03:25 -07:00
parent 176d9921c7
commit 2b0395ab12
No known key found for this signature in database
GPG Key ID: D78C4471CE776659
1 changed files with 3 additions and 3 deletions

View File

@ -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)
}
})
@ -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)
}
})
@ -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)
}
})