Skip to content

Commit 5f85891

Browse files
committed
fix test
1 parent 9c44901 commit 5f85891

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsc/tests/dsc_functions.tests.ps1

Lines changed: 2 additions & 2 deletions
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 '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 @(
@@ -428,7 +428,7 @@ Describe 'tests for function expressions' {
428428
$LASTEXITCODE | Should -Be 0 -Because (Get-Content $TestDrive/error.log -Raw)
429429
($out.results[0].result.actualState.output | Out-String) | Should -BeExactly ($expected | Out-String)
430430
}
431-
431+
432432
It 'skip function works for: <expression>' -TestCases @(
433433
@{ expression = "[skip(createArray('a','b','c','d'), 2)]"; expected = @('c', 'd') }
434434
@{ expression = "[skip('hello', 2)]"; expected = 'llo' }

0 commit comments

Comments
 (0)