1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-30 08:17:18 +00:00

Add test for basic auth

This commit is contained in:
Makis Maropoulos
2016-07-02 18:53:36 +02:00
parent 263fc77e5c
commit 90c7e1466c
7 changed files with 160 additions and 40 deletions

View File

@@ -59,7 +59,7 @@ func TestRenderRest(t *testing.T) {
ctx.Markdown(iris.StatusOK, markdownContents)
})
e := tester(api, t)
e := Tester(api, t)
dataT := e.GET("/data").Expect().Status(iris.StatusOK)
dataT.Header("Content-Type").Equal("application/octet-stream")
dataT.Body().Equal(string(dataContents))