File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -78,14 +78,14 @@ impl ScriptPreProcessor for TypeScriptPreProcessor {
7878pub  mod  tests { 
7979 use  crate :: TypeScriptPreProcessor ; 
8080 use  futures:: executor:: block_on; 
81-  use  hirofa_utils:: js_utils:: facades:: JsRuntimeFacade ; 
81+  use  hirofa_utils:: js_utils:: facades:: { JsRuntimeBuilder ,   JsRuntimeFacade } ; 
8282 use  hirofa_utils:: js_utils:: Script ; 
83-  use  quickjs_runtime:: builder:: QuickjsRuntimeBuilder ; 
83+  use  quickjs_runtime:: builder:: QuickJsRuntimeBuilder ; 
8484
8585 #[ test]  
8686 fn  test_ts ( )  { 
87-  let  rt = QuickjsRuntimeBuilder :: new ( ) 
88-  . script_pre_processor ( TypeScriptPreProcessor :: new ( ) ) 
87+  let  rt = QuickJsRuntimeBuilder :: new ( ) 
88+  . js_script_pre_processor ( TypeScriptPreProcessor :: new ( ) ) 
8989 . build ( ) ; 
9090
9191 let  fut = rt. js_eval ( 
@@ -97,6 +97,6 @@ pub mod tests {
9797 ) ; 
9898 let  res = block_on ( fut) . ok ( ) . expect ( "script failed" ) ; 
9999 //println!("res = {}", res.js_get_type()); 
100-  assert_eq ! ( res. js_as_i32 ( ) ,  1 ) ; 
100+  assert_eq ! ( res. get_i32 ( ) ,  1 ) ; 
101101 } 
102102} 
                                 You can’t perform that action at this time. 
               
                  
0 commit comments