Skip to content

Commit ba9bfec

Browse files
committed
Fix tests
1 parent 2472b7d commit ba9bfec

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

dsc/tests/dsc_functions.tests.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -766,17 +766,15 @@ Describe 'tests for function expressions' {
766766
) {
767767
param($expression, $expectedError)
768768

769-
$escapedExpression = $expression -replace "'", "''"
770-
771769
$config_yaml = @"
772770
`$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
773771
resources:
774772
- name: Echo
775773
type: Microsoft.DSC.Debug/Echo
776774
properties:
777-
output: "$escapedExpression"
775+
output: `"$expression`"
778776
"@
779-
$out = dsc -l trace config get -i $config_yaml 2>$TestDrive/error.log
777+
$null = dsc -l trace config get -i $config_yaml 2>$TestDrive/error.log
780778
$LASTEXITCODE | Should -Not -Be 0
781779
$errorContent = Get-Content $TestDrive/error.log -Raw
782780
$errorContent | Should -Match $expectedError

0 commit comments

Comments
 (0)