Skip to content

Commit 8c01c05

Browse files
committed
need to escape regex
1 parent 5f85891 commit 8c01c05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsc/tests/dsc_functions.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ Describe 'tests for function expressions' {
295295
$out = dsc -l trace config get -i $config_yaml 2>$TestDrive/error.log | ConvertFrom-Json
296296
$LASTEXITCODE | Should -Be 2 -Because (Get-Content $TestDrive/error.log -Raw)
297297
$out | Should -BeNullOrEmpty -Because "Output should be null or empty"
298-
(Get-Content $TestDrive/error.log -Raw) | Should -Match "The 'utcNow()' function can only be used as a parameter default"
298+
(Get-Content $TestDrive/error.log -Raw) | Should -Match "The 'utcNow\(\)' function can only be used as a parameter default"
299299
}
300300

301301
It 'uniqueString function works for: <expression>' -TestCases @(

0 commit comments

Comments
 (0)