mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 18:22:23 +08:00
add jsonp fail test
This commit is contained in:
parent
db85d1227e
commit
5985384809
@ -161,7 +161,7 @@ func TestRenderJsonpJSONFail(t *testing.T) {
|
||||
data := make(chan int)
|
||||
|
||||
// json: unsupported type: chan int
|
||||
err := (SecureJSON{"x", data}).Render(w)
|
||||
err := (JsonpJSON{"x", data}).Render(w)
|
||||
assert.Error(t, err)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user