We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf7d7bb commit df5b99dCopy full SHA for df5b99d
dsc/tests/dsc_functions.tests.ps1
@@ -704,13 +704,14 @@ Describe 'tests for function expressions' {
704
) {
705
param($expression, $expectedError)
706
707
+ $escapedExpression = $expression -replace "'", "''"
708
$config_yaml = @"
709
`$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
710
resources:
711
- name: Echo
712
type: Microsoft.DSC.Debug/Echo
713
properties:
- output: "$expression"
714
+ output: '$escapedExpression'
715
"@
716
$out = dsc -l trace config get -i $config_yaml 2>$TestDrive/error.log
717
$LASTEXITCODE | Should -Not -Be 0
0 commit comments