Skip to content

Commit

Permalink
mistakes were made
Browse files Browse the repository at this point in the history
  • Loading branch information
santisq committed Jan 10, 2025
1 parent e39c33d commit 9e16b18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ZipEntryCmdlets.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Describe 'ZipEntry Cmdlets' {
}

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

Expand All @@ -31,7 +31,7 @@ Describe 'ZipEntry Cmdlets' {
}

It 'Should throw if -Source is a Directory' {
{ New-ZipEntry -Destination $zip.FullName -EntryPath baz -SourcePath $pwd.FullName } |
{ New-ZipEntry -Destination $zip.FullName -EntryPath baz -SourcePath $TestDrive } |
Should -Throw
}

Expand Down Expand Up @@ -139,7 +139,7 @@ Describe 'ZipEntry Cmdlets' {
}

It 'Should throw if the path is not a file' {
{ Get-ZipEntry $pwd.FullName } |
{ Get-ZipEntry $TestDrive } |
Should -Throw -ExceptionType ([System.ArgumentException])
}

Expand Down

0 comments on commit 9e16b18

Please sign in to comment.