From 5e09dc2beee7434d8f396253569a4f74a61cb7f8 Mon Sep 17 00:00:00 2001 From: fliiiix Date: Fri, 24 Jan 2025 09:55:35 +0100 Subject: [PATCH] Update testing documentation to use correct function --- docs/guides/testing.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/guides/testing.md b/docs/guides/testing.md index 377432221..f7c49ba51 100644 --- a/docs/guides/testing.md +++ b/docs/guides/testing.md @@ -15,7 +15,10 @@ Crow allows users to handle requests that may not come from the network. This is req.url = "/place"; - app.handle(req, res); //res will contain a code of 200, and a response body of "hi" + app.handle_full(req, res); + // res will contain: + // res.code == 200 + // res.body == "hi" } ```