fix test: use BotFunction's method by_name
This commit is contained in:
parent
1aed17fa30
commit
ad58587160
@ -384,7 +384,7 @@ mod tests {
|
||||
.run_script("function cancel_buttons() {return 'cancelation'}")
|
||||
.unwrap();
|
||||
|
||||
let f = BotFunction("cancel_buttons".to_string());
|
||||
let f = BotFunction::by_name("cancel_buttons".to_string());
|
||||
let res = f.call_context(&runner).unwrap();
|
||||
|
||||
println!("RES: {res:?}");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user