Skip to content

Commit 7bc632f

Browse files
author
Steve Lee (POWERSHELL)
committed
Fixed deployment of TrailingSpacer.zip file
1 parent 389e924 commit 7bc632f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Tests/Pester.Commands.Cmdlets.Archive.Tests.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ Describe "Test suite for Microsoft.PowerShell.Archive module" -Tags "BVT" {
2626

2727
$preCreatedArchivePath = Join-Path $script:TestSourceRoot "SamplePreCreatedArchive.archive"
2828
Copy-Item $preCreatedArchivePath $TestDrive\SamplePreCreatedArchive.zip -Force
29+
30+
$preCreatedArchivePath = Join-Path $script:TestSourceRoot "TrailingSpacer.archive"
31+
Copy-Item $preCreatedArchivePath $TestDrive\TrailingSpacer.zip -Force
2932
}
3033

3134
function Add-CompressionAssemblies {
@@ -1060,7 +1063,7 @@ Describe "Test suite for Microsoft.PowerShell.Archive module" -Tags "BVT" {
10601063
}
10611064

10621065
It "Validate Expand-Archive works with zip files where the contents contain trailing whitespace" {
1063-
$archivePath = ".\TrailingSpacer.zip"
1066+
$archivePath = "$TestDrive\TrailingSpacer.zip"
10641067
$destinationPath = "$TestDrive\TrailingSpacer"
10651068
# we can't just compare the output and the results as you only get one DirectoryInfo for directories that only contain directories
10661069
$expectedPaths = "$TestDrive\TrailingSpacer\Inner\TrailingSpace","$TestDrive\TrailingSpacer\Inner\TrailingSpace\test.txt"
File renamed without changes.

0 commit comments

Comments
 (0)