From 9e16b1868ecf4e4d5b4143fed38d464ae5f66cb4 Mon Sep 17 00:00:00 2001 From: Santiago Squarzon Date: Thu, 9 Jan 2025 21:23:59 -0300 Subject: [PATCH] mistakes were made --- tests/ZipEntryCmdlets.tests.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ZipEntryCmdlets.tests.ps1 b/tests/ZipEntryCmdlets.tests.ps1 index 370a2a7..eda2a5d 100644 --- a/tests/ZipEntryCmdlets.tests.ps1 +++ b/tests/ZipEntryCmdlets.tests.ps1 @@ -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 } @@ -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 } @@ -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]) }