Skip to content

Commit

Permalink
Update testing documentation to use correct function
Browse files Browse the repository at this point in the history
  • Loading branch information
fliiiix authored and gittiver committed Jan 24, 2025
1 parent c0da4db commit 96ed14a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/guides/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
```
Expand Down

0 comments on commit 96ed14a

Please sign in to comment.