Skip to content

Commit 16857ca

Browse files
committed
Assert ContentType is application/json for JSON payloads.
1 parent 7b17389 commit 16857ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

group/group_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ func TestUpdate(t *testing.T) {
159159

160160
mbtest.AssertEndpointCalled(t, http.MethodPatch, "/groups/group-id")
161161
mbtest.AssertTestdata(t, "groupRequestUpdateObject.json", mbtest.Request.Body)
162+
163+
if mbtest.Request.ContentType != "application/json" {
164+
t.Fatalf("got %s, expected application/json", mbtest.Request.ContentType)
165+
}
162166
}
163167

164168
func TestAddContacts(t *testing.T) {

0 commit comments

Comments
 (0)