Skip to content

Commit 5c56021

Browse files
committed
Add standard zip content assertion
1 parent f0b4387 commit 5c56021

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/Compress-Archive.Tests.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ BeforeDiscovery {
312312

313313
chmod -R u+rw "$sourcePathAbsolute"
314314
Compress-Archive -Path $sourcePath -DestinationPath $destinationPath
315+
$destinationPath | Should -BeZipArchiveOnlyContaining @('SourceDir/', 'SourceDir/ChildDir-1/', 'SourceDir/ChildDir-2/', 'SourceDir/ChildEmptyDir/', 'SourceDir/Sample-1.txt', 'SourceDir/ChildDir-1/Sample-2.txt', 'SourceDir/ChildDir-2/Sample-3.txt')
315316
unzip $destinationPathAbsolute -d $unzipPathAbsolute -v
316317

317318
$lsOutput = ls -Rl $unzipPathAbsolute

0 commit comments

Comments
 (0)