File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -920,14 +920,13 @@ Describe 'tests for function expressions' {
920920 @ { expression = " [uriComponent(' ')]" ; expected = ' %20' }
921921 ) {
922922 param ($expression , $expected )
923- $escapedExpression = $expression -replace " '" , " ''"
924923 $config_yaml = @"
925924 `$ schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
926925 resources:
927926 - name: Echo
928927 type: Microsoft.DSC.Debug/Echo
929928 properties:
930- output: ' $escapedExpression '
929+ output: " $expression "
931930"@
932931 $out = $config_yaml | dsc config get -f - | ConvertFrom-Json
933932 $out.results [0 ].result.actualState.output | Should - Be $expected
@@ -949,15 +948,13 @@ Describe 'tests for function expressions' {
949948 @ { expression = " [uriComponentToString(concat('hello', '%20', 'world'))]" ; expected = ' hello world' }
950949 ) {
951950 param ($expression , $expected )
952-
953- $escapedExpression = $expression -replace " '" , " ''"
954951 $config_yaml = @"
955952 `$ schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
956953 resources:
957954 - name: Echo
958955 type: Microsoft.DSC.Debug/Echo
959956 properties:
960- output: ' $escapedExpression '
957+ output: " $expression "
961958"@
962959 $out = $config_yaml | dsc config get -f - | ConvertFrom-Json
963960 $out.results [0 ].result.actualState.output | Should - Be $expected
You can’t perform that action at this time.
0 commit comments