File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -43,24 +43,32 @@ fn offline_json_output_includes_browser_path_test() {
4343        "chrome" , 
4444        "--offline" , 
4545        "--output" , 
46-         "json" 
46+         "json" , 
4747    ] ) 
4848    . assert ( ) 
4949    . success ( ) 
5050    . code ( 0 ) ; 
5151
5252    let  stdout = get_stdout ( & mut  cmd) ; 
5353
54-     let  json:  Value  = serde_json:: from_str ( & stdout) 
55-         . expect ( "Should be valid JSON" ) ; 
54+     let  json:  Value  = serde_json:: from_str ( & stdout) . expect ( "Should be valid JSON" ) ; 
5655
5756    assert ! ( json[ "result" ] . is_object( ) ,  "Result should be an object" ) ; 
58-     assert ! ( json[ "result" ] [ "code" ] . is_number( ) ,  "Code should be a number" ) ; 
57+     assert ! ( 
58+         json[ "result" ] [ "code" ] . is_number( ) , 
59+         "Code should be a number" 
60+     ) ; 
5961    assert_eq ! ( json[ "result" ] [ "code" ] ,  0 ,  "Code should be 0 for success" ) ; 
6062
61-     assert ! ( json[ "result" ] [ "browser_path" ] . is_string( ) ,  "browser_path should be a string" ) ; 
63+     assert ! ( 
64+         json[ "result" ] [ "browser_path" ] . is_string( ) , 
65+         "browser_path should be a string" 
66+     ) ; 
6267
6368    assert ! ( json[ "logs" ] . is_array( ) ,  "Logs should be an array" ) ; 
6469    let  logs_str = json[ "logs" ] . to_string ( ) ; 
65-     assert ! ( logs_str. contains( "offline mode" ) ,  "Should mention offline mode in logs" ) ; 
70+     assert ! ( 
71+         logs_str. contains( "offline mode" ) , 
72+         "Should mention offline mode in logs" 
73+     ) ; 
6674} 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments