14 lines
302 B
Rust
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());
|
|
}
|