Skip to content

Commit f86686d

Browse files
committed
Update tests
1 parent 692b4a2 commit f86686d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

dsc/tests/dsc_functions.tests.ps1

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)