Skip to content

Commit 96ed14a

Browse files
fliiiixgittiver
authored andcommitted
Update testing documentation to use correct function
1 parent c0da4db commit 96ed14a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/guides/testing.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ Crow allows users to handle requests that may not come from the network. This is
1515

1616
req.url = "/place";
1717

18-
app.handle(req, res); //res will contain a code of 200, and a response body of "hi"
18+
app.handle_full(req, res);
19+
// res will contain:
20+
// res.code == 200
21+
// res.body == "hi"
1922
}
2023
```
2124

0 commit comments

Comments
 (0)