Skip to content

Commit

Permalink
pester tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
santisq committed Jul 16, 2023
1 parent 606a171 commit 74a2e00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/GzipCmdlets.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ Describe 'Gzip Cmdlets' {
}

It 'Should throw if trying to compress a directory' {
{ 0..5 | ForEach-Object { New-Item (Join-Path $TestDrive "folder $_") } |
Compress-GzipArchive -DestinationPath $destination } |
$folders = 0..5 | ForEach-Object { New-Item (Join-Path $TestDrive "folder $_") }
{ Compress-GzipArchive $folders.FullName -Destination $destination } |
Should -Throw
}

Expand Down
2 changes: 1 addition & 1 deletion tests/ZipEntryCmdlets.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Describe 'ZipEntry Cmdlets' {
}

It 'Should throw if -Destination is a Directory' {
{ New-ZipEntry -Destination $pwd -EntryPath foo } |
{ New-ZipEntry -Destination $pwd.Path -EntryPath foo } |
Should -Throw
}

Expand Down

0 comments on commit 74a2e00

Please sign in to comment.