File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed
Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ pub fn get_openapi_docs() -> OpenApi {
2222
2323 openapi. servers = vec ! [
2424 Server {
25- url: env:: var( "PUBLIC_BACKEND_API_URL" ) . unwrap_or_else( |_| "https://api-rustytime.shymike.dev" . into( ) ) ,
25+ url: env:: var( "PUBLIC_BACKEND_API_URL" )
26+ . unwrap_or_else( |_| "https://api-rustytime.shymike.dev" . into( ) ) ,
2627 description: Some ( "Production deployment" . into( ) ) ,
2728 ..Default :: default ( )
2829 } ,
Original file line number Diff line number Diff line change @@ -149,8 +149,8 @@ impl TestApp {
149149
150150 let mut server_config = TestServerConfig :: new ( ) ;
151151 server_config. save_cookies = true ;
152- let server = TestServer :: new_with_config ( app , server_config )
153- . expect ( "Failed to create test server" ) ;
152+ let server =
153+ TestServer :: new_with_config ( app , server_config ) . expect ( "Failed to create test server" ) ;
154154
155155 Self { server, db_pool }
156156 }
Original file line number Diff line number Diff line change @@ -326,7 +326,12 @@ mod heartbeat_tests {
326326 response. assert_status ( StatusCode :: ACCEPTED ) ;
327327 let body: serde_json:: Value = response. json ( ) ;
328328 assert ! ( body. get( "data" ) . is_some( ) ) ;
329- assert ! ( body[ "data" ] [ "entity" ] . as_str( ) . unwrap( ) . contains( "test_file.rs" ) ) ;
329+ assert ! (
330+ body[ "data" ] [ "entity" ]
331+ . as_str( )
332+ . unwrap( )
333+ . contains( "test_file.rs" )
334+ ) ;
330335
331336 app. cleanup_test_user ( user. id ) ;
332337 }
@@ -482,7 +487,9 @@ mod data_retrieval_tests {
482487
483488 response. assert_status_ok ( ) ;
484489 let body: serde_json:: Value = response. json ( ) ;
485- let total_seconds = body[ "data" ] [ "grand_total" ] [ "total_seconds" ] . as_i64 ( ) . unwrap_or ( 0 ) ;
490+ let total_seconds = body[ "data" ] [ "grand_total" ] [ "total_seconds" ]
491+ . as_i64 ( )
492+ . unwrap_or ( 0 ) ;
486493 assert ! ( total_seconds >= 0 ) ;
487494
488495 app. cleanup_test_user ( user. id ) ;
You can’t perform that action at this time.
0 commit comments