We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c891b6 commit 3770023Copy full SHA for 3770023
Tests/Rules/UseCorrectCasing.tests.ps1
@@ -40,7 +40,7 @@ Describe "UseCorrectCasing" {
40
}
41
42
It "preserves script paths" -Skip:($IsLinux -or $IsMacOS) {
43
- $uncPath = [System.IO.Path]::Combine("\\$(HOSTNAME.EXE)\C$\", $TestDrive, "$(New-Guid).ps1")
+ $uncPath = [System.IO.Path]::Combine("\\$(HOSTNAME.EXE)\C$\", $TestDrive, "$([guid]::NewGuid()).ps1")
44
New-Item -ItemType File -Path $uncPath
45
$scriptDefinition = ". $uncPath"
46
Invoke-Formatter $scriptDefinition | Should -Be $scriptDefinition
0 commit comments