File tree Expand file tree Collapse file tree
crates/bashkit/src/scripted_tool Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -426,7 +426,9 @@ mod tests {
426426 let schema = serde_json:: json!( { } ) ;
427427 let result = parse_flags ( & [ "42" . into ( ) ] , & schema) ;
428428 assert ! ( result. is_err( ) ) ;
429- assert ! ( result. expect_err( "should reject positional" ) . contains( "expected --flag" ) ) ;
429+ assert ! ( result
430+ . expect_err( "should reject positional" )
431+ . contains( "expected --flag" ) ) ;
430432 }
431433
432434 #[ test]
Original file line number Diff line number Diff line change @@ -660,7 +660,8 @@ mod tests {
660660 } )
661661 . await ;
662662 assert_eq ! ( resp. exit_code, 0 ) ;
663- let parsed: serde_json:: Value = serde_json:: from_str ( resp. stdout . trim ( ) ) . expect ( "stdout should be valid JSON" ) ;
663+ let parsed: serde_json:: Value =
664+ serde_json:: from_str ( resp. stdout . trim ( ) ) . expect ( "stdout should be valid JSON" ) ;
664665 assert_eq ! ( parsed[ "name" ] , "Alice" ) ;
665666 assert_eq ! ( parsed[ "count" ] , "3" ) ; // string, not int — no schema
666667 }
You can’t perform that action at this time.
0 commit comments