1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00

Add Strict option to httptest as requested at: #1722

This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-02-13 21:21:19 +02:00
parent 5fe233278a
commit d26b9bfbed
5 changed files with 39 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ import (
// $ go test -v
func TestNewApp(t *testing.T) {
app := newApp()
e := httptest.New(t, app)
e := httptest.New(t, app, httptest.Strict(true))
// redirects to /admin without basic auth
e.GET("/").Expect().Status(httptest.StatusUnauthorized)