Skip to content

Commit b2a5528

Browse files
committed
update test
1 parent ddbe82f commit b2a5528

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

dsc/tests/dsc_functions.tests.ps1

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
# Licensed under the MIT License.
33

44
Describe 'tests for function expressions' {
5-
BeforeAll {
6-
$sep = [System.IO.Path]::DirectorySeparatorChar
7-
}
8-
9-
105
It 'function works: <text>' -TestCases @(
116
@{ text = "[concat('a', 'b')]"; expected = 'ab' }
127
@{ text = "[concat('a', 'b', 'c')]"; expected = 'abc' }
@@ -31,8 +26,8 @@ Describe 'tests for function expressions' {
3126
}
3227

3328
It 'path(<path>) works' -TestCases @(
34-
@{ path = "targetPath(), 'a'"; expected = "$PSHOME${sep}a" }
35-
@{ path = "'a', 'b', 'c'"; expected = "a${sep}b${sep}c" }
29+
@{ path = "targetPath(), 'a'"; expected = "$PSHOME$([System.IO.Path]::DirectorySeparatorChar)a" }
30+
@{ path = "'a', 'b', 'c'"; expected = "a$([System.IO.Path]::DirectorySeparatorChar)b$([System.IO.Path]::DirectorySeparatorChar)c" }
3631
) {
3732
param($path, $expected)
3833

0 commit comments

Comments
 (0)