diff --git a/src/extension/script.rs b/src/extension/script.rs index 5dbedc9..0c92a4c 100644 --- a/src/extension/script.rs +++ b/src/extension/script.rs @@ -174,7 +174,7 @@ mod tests { ); let extension = ScriptExtension::new(); - let output = extension.calculate(¶ms, &vec![], &HashMap::new()); + let output = extension.calculate(¶ms, &vec![], &HashMap::new()).unwrap(); assert!(output.is_some()); assert_eq!( @@ -194,7 +194,7 @@ mod tests { params.insert(Value::from("trim"), Value::from(false)); let extension = ScriptExtension::new(); - let output = extension.calculate(¶ms, &vec![], &HashMap::new()); + let output = extension.calculate(¶ms, &vec![], &HashMap::new()).unwrap(); assert!(output.is_some()); assert_eq!( @@ -213,7 +213,7 @@ mod tests { ); let extension = ScriptExtension::new(); - let output = extension.calculate(¶ms, &vec!["jon".to_owned()], &HashMap::new()); + let output = extension.calculate(¶ms, &vec!["jon".to_owned()], &HashMap::new()).unwrap(); assert!(output.is_some()); assert_eq!( @@ -233,7 +233,7 @@ mod tests { params.insert(Value::from("inject_args"), Value::from(true)); let extension = ScriptExtension::new(); - let output = extension.calculate(¶ms, &vec!["jon".to_owned()], &HashMap::new()); + let output = extension.calculate(¶ms, &vec!["jon".to_owned()], &HashMap::new()).unwrap(); assert!(output.is_some()); assert_eq!( @@ -261,7 +261,7 @@ mod tests { ); let extension = ScriptExtension::new(); - let output = extension.calculate(¶ms, &vec![], &vars); + let output = extension.calculate(¶ms, &vec![], &vars).unwrap(); assert!(output.is_some()); assert_eq!(