test for DeserializerJS::deserialize_js
This commit is contained in:
parent
0a60b0469f
commit
ea007127ff
@ -219,6 +219,8 @@ mod tests {
|
||||
let runner = Runner::init().unwrap();
|
||||
let val = runner.run_script(include_str!("../mainbot.js")).unwrap();
|
||||
println!("config: {:?}", val);
|
||||
let d: RunnerConfig = DeserializerJS::deserialize_js(&val).unwrap();
|
||||
println!("desr rc: {:?}", d);
|
||||
let val = runner.run_script("start_buttons()").unwrap();
|
||||
println!("Val: {:?}", val.to_string());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user