We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? No
Describe the solution you'd like httpexpect already supports fasthttp binder.
The only thing to do is making app.handler accessable.
app.handler
Simple example:
// fiberHTTPTester returns a new Expect instance to test FiberHandler(). func fiberHTTPTester(t *testing.T) *httpexpect.Expect { app := fiber.New() app.Get("ping", func(c *fiber.Ctx) { c.SendString("pong") }) return httpexpect.WithConfig(httpexpect.Config{ Client: &http.Client{Transport: httpexpect.NewFastBinder(app.Handler)}, Reporter: t, }) } func TestFastHTTP(t *testing.T) { e := fiberHTTPTester(t) e.GET("/ping").Expect(). Status(200). Text().Equal("pong") }
The text was updated successfully, but these errors were encountered:
🚀 How about compatibling with httpexpect gofiber#485
09e9915
#504 added the possibility to access the handler
Sorry, something went wrong.
Merge pull request #504 from ReneWerner87/master
e34326d
🚀 How about compatibling with httpexpect #485
Will be tagged in v1.12.1 👍
v1.12.1
No branches or pull requests
Is your feature request related to a problem?
No
Describe the solution you'd like
httpexpect already supports fasthttp binder.
The only thing to do is making
app.handler
accessable.Simple example:
The text was updated successfully, but these errors were encountered: