Skip to content

Commit 0d0282a

Browse files
committed
fix test
1 parent ffceb56 commit 0d0282a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dsc/tests/dsc_expressions.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Describe 'Expressions tests' {
7373
"@
7474
$out = dsc config get -i $yaml 2>&1
7575
$LASTEXITCODE | Should -Be 2
76-
$out | Should -BeLike "*ERROR*"
76+
,$out | Should -BeLike "*ERROR*" -Because ($out | Out-String)
7777
}
7878

7979
It 'Multi-line string literals work' {

lib/dsc-lib/src/functions/stdout.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ impl Function for Stdout {
3030
let result = stdout.to_string();
3131
return Ok(Value::String(result));
3232
}
33-
Err(DscError::Parser(t!("functions.stdout.noStdoutAvailable").to_string(),
34-
))
33+
Err(DscError::Parser(t!("functions.stdout.noStdoutAvailable").to_string()))
3534
}
3635
}

0 commit comments

Comments
 (0)