fix(render): fix failing test on Windows
This commit is contained in:
parent
05c26f9eb0
commit
f35eecae88
|
@ -343,10 +343,13 @@ mod tests {
|
|||
)
|
||||
} else {
|
||||
Params::from_iter(
|
||||
vec![(
|
||||
vec![
|
||||
(
|
||||
"cmd".to_string(),
|
||||
Value::String("echo %ESPANSO_VAR1%".to_string()),
|
||||
)]
|
||||
),
|
||||
("shell".to_string(), Value::String("cmd".to_string())),
|
||||
]
|
||||
.into_iter(),
|
||||
)
|
||||
};
|
||||
|
@ -365,8 +368,13 @@ mod tests {
|
|||
fn invalid_command() {
|
||||
let extension = ShellExtension::new(&PathBuf::new());
|
||||
|
||||
let param =
|
||||
Params::from_iter(vec![("cmd".to_string(), Value::String("nonexistentcommand".to_string()))].into_iter());
|
||||
let param = Params::from_iter(
|
||||
vec![(
|
||||
"cmd".to_string(),
|
||||
Value::String("nonexistentcommand".to_string()),
|
||||
)]
|
||||
.into_iter(),
|
||||
);
|
||||
assert!(matches!(
|
||||
extension.calculate(&Default::default(), &Default::default(), ¶m),
|
||||
ExtensionResult::Error(_)
|
||||
|
|
Loading…
Reference in New Issue
Block a user