Skip to content

Commit

Permalink
make test ps v4 compatible (new-guid cmdlet does not exists on v4)
Browse files Browse the repository at this point in the history
  • Loading branch information
bergmeister committed Jun 6, 2019
1 parent 6c891b6 commit 3770023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Rules/UseCorrectCasing.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Describe "UseCorrectCasing" {
}

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

0 comments on commit 3770023

Please sign in to comment.