Skip to content

Commit 3770023

Browse files
committed
make test ps v4 compatible (new-guid cmdlet does not exists on v4)
1 parent 6c891b6 commit 3770023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Rules/UseCorrectCasing.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Describe "UseCorrectCasing" {
4040
}
4141

4242
It "preserves script paths" -Skip:($IsLinux -or $IsMacOS) {
43-
$uncPath = [System.IO.Path]::Combine("\\$(HOSTNAME.EXE)\C$\", $TestDrive, "$(New-Guid).ps1")
43+
$uncPath = [System.IO.Path]::Combine("\\$(HOSTNAME.EXE)\C$\", $TestDrive, "$([guid]::NewGuid()).ps1")
4444
New-Item -ItemType File -Path $uncPath
4545
$scriptDefinition = ". $uncPath"
4646
Invoke-Formatter $scriptDefinition | Should -Be $scriptDefinition

0 commit comments

Comments
 (0)