added test funtion for full_uri method

This commit is contained in:
Timo Caktu 2023-08-04 15:14:24 +02:00
parent 8cff116b1c
commit 6d2aac1df3
1 changed files with 7 additions and 0 deletions

View File

@ -975,4 +975,11 @@ mod tests {
assert!(format!("{:?}", req).contains(location_header));
}
#[test]
fn check_full_uri() {
let req = TestRequest::with_uri("/api?id=4&name=foo").to_http_request();
assert_eq!(req.full_uri(), "http://localhost:8080/api?id=4&name=foo");
}
}