From 2b0395ab12a66da41f14fd25cca30c95e23289b9 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Wed, 7 Jun 2023 18:03:25 -0700 Subject: [PATCH] api: Fix c07f574 broken tests Closes #395. --- api/send_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/send_test.go b/api/send_test.go index d314a14b..c20d3cec 100644 --- a/api/send_test.go +++ b/api/send_test.go @@ -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) } })