mirror of
https://github.com/CodingIsOurPassion/CodingIsOurPassion.git
synced 2025-01-04 18:59:30 -06:00
12 lines
320 B
Rust
12 lines
320 B
Rust
#[tokio::test]
|
|
async fn index_returns_200_ok() {
|
|
let app = crate::helpers::TestApp::spawn().await;
|
|
let client = reqwest::Client::new();
|
|
let response = client
|
|
.get(app.url(""))
|
|
.send()
|
|
.await
|
|
.expect("Failed to execute request");
|
|
assert!(response.status().is_success());
|
|
}
|