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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user