Skip to content

Commit

Permalink
fixed missed code bug
Browse files Browse the repository at this point in the history
  • Loading branch information
salamer committed Aug 18, 2018
1 parent d563eef commit da3709c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions render/render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,12 @@ func TestRenderProtoBuf(t *testing.T) {
(ProtoBuf{data}).WriteContentType(w)
protoData, err := proto.Marshal(data)
assert.NoError(t, err)
(ProtoBuf{data}).WriteContentType(w)
assert.Equal(t, "application/x-protobuf", w.Header().Get("Content-Type"))

err = (ProtoBuf{data}).Render(w)

assert.NoError(t, err)
assert.Equal(t, string(protoData[:]), w.Body.String())
assert.Equal(t, "application/x-protobuf", w.Header().Get("Content-Type"))
}

func TestRenderXML(t *testing.T) {
Expand Down

0 comments on commit da3709c

Please sign in to comment.