File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -600,6 +600,21 @@ Describe 'Export-WinGetPackage' {
600
600
Test-Path - Path $testDirectory | Should - Be $false
601
601
}
602
602
603
+ It ' Download with short Version' {
604
+ $testDirectory = GetRandomTestDirectory
605
+ $result = Export-WinGetPackage - Id AppInstallerTest.TestExeInstaller - Version ' 1' - DownloadDirectory $testDirectory
606
+
607
+ $result | Should -Not - BeNullOrEmpty
608
+ $result.Id | Should - Be " AppInstallerTest.TestExeInstaller"
609
+ $result.Name | Should - Be " TestExeInstaller"
610
+ $result.Source | Should - Be " TestSource"
611
+ $result.Status | Should - Be ' Ok'
612
+
613
+ # Download directory should be created and have exactly two files (installer and manifest file).
614
+ Test-Path - Path $testDirectory | Should - Be $true
615
+ (Get-ChildItem - Path $testDirectory - Force | Measure-Object ).Count | Should - Be 2
616
+ }
617
+
603
618
AfterEach {
604
619
if (Test-Path $testDirectory ) {
605
620
Remove-Item $testDirectory - Force - Recurse
You can’t perform that action at this time.
0 commit comments