Skip to content

Commit

Permalink
Fixed render test
Browse files Browse the repository at this point in the history
  • Loading branch information
eeonevision committed Nov 25, 2019
1 parent faf04c7 commit 28c8207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions render/render_test.go
Expand Up @@ -66,12 +66,12 @@ func TestRenderJSON(t *testing.T) {
assert.Equal(t, "application/json; charset=utf-8", w.Header().Get("Content-Type"))
}

func TestRenderJSONPanics(t *testing.T) {
func TestRenderJSONError(t *testing.T) {
w := httptest.NewRecorder()
data := make(chan int)

// json: unsupported type: chan int
assert.Panics(t, func() { assert.NoError(t, (JSON{data}).Render(w)) })
assert.Error(t, (JSON{data}).Render(w))
}

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

0 comments on commit 28c8207

Please sign in to comment.