Commit de89b7fa authored by santiaago's avatar santiaago
Browse files

test WriteJPEG

parent 1a0d9158
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -19,8 +19,11 @@ func TestImageWithTemplate(t *testing.T) {
}

func TestImageJPEG(t *testing.T) {
}

func TestImageSVG(t *testing.T) {
	recorder := httptest.NewRecorder()
	var img image.Image = image.NewRGBA(image.Rect(0, 0, 0, 0))

	ImageJPEG(recorder, &img)
	if recorder.Code != http.StatusOK {
		t.Errorf("returned %v. Expected %v.", recorder.Code, http.StatusOK)
	}
}