zero2prod_axum/tests/api/health_check.rs
2024-03-04 11:48:47 +01:00

14 lines
302 B
Rust

use crate::helpers::spawn_app;
#[tokio::test]
async fn health_check_works() {
// Arrange
let app = spawn_app().await;
// Act
let response = app.get_health_check().await;
// Assert
assert!(response.status().is_success());
assert_eq!(Some(0), response.content_length());
}