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 ae79ea1 commit 0166791Copy full SHA for 0166791
Tests/Compress-Archive.Tests.ps1
@@ -58,14 +58,14 @@ BeforeDiscovery {
58
}
59
60
It "Validate errors from Compress-Archive when invalid path is supplied for Path or LiteralPath parameters" -ForEach @(
61
- @{ Path = "Env:/PWD" }
62
- @{ Path = @("TestDrive:/", "Env:/PWD") }
+ @{ Path = "Variable:/PWD" }
+ @{ Path = @("TestDrive:/", "Variable:/PWD") }
63
) -Tag this1 {
64
$DestinationPath = "TestDrive:/archive2.zip"
65
66
Write-Verbose -Message "${PWD}" -Verbose
67
68
- Get-ChildItem "Env:/" | Write-Verbose -Verbose
+ Get-ChildItem "Variable:/" | Write-Verbose -Verbose
69
70
Compress-Archive -Path $Path -DestinationPath $DestinationPath -ErrorAction SilentlyContinue -ErrorVariable error
71
$error.Count | Should -Be 1
0 commit comments