mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-24 02:32:17 +08:00
remove
This commit is contained in:
parent
15c4f24ddf
commit
82fbcf539e
@ -677,9 +677,6 @@ func TestContextRenderHTML(t *testing.T) {
|
|||||||
w := httptest.NewRecorder()
|
w := httptest.NewRecorder()
|
||||||
c, router := CreateTestContext(w)
|
c, router := CreateTestContext(w)
|
||||||
|
|
||||||
router.addRoute("GET", "/", HandlersChain{func(_ *Context) {}})
|
|
||||||
assert.Len(t, router.trees, 1)
|
|
||||||
|
|
||||||
templ := template.Must(template.New("t").Parse(`Hello {{.name}}`))
|
templ := template.Must(template.New("t").Parse(`Hello {{.name}}`))
|
||||||
router.SetHTMLTemplate(templ)
|
router.SetHTMLTemplate(templ)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user