Skip to content

Commit f3e5c22

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix test
1 parent 1d91184 commit f3e5c22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/appx/appx.tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Describe 'Tests for Appx resource discovery' {
55
BeforeAll {
6-
$skip = (!$IsWindows -or ($null -eq (get-appxpackage -Name Microsoft.DesiredStateConfiguration-Preview)))
6+
$skip = (!$IsWindows -or ($null -eq (Get-Command Get-AppxPackage -ErrorAction Ignore)) -or ($null -eq (get-appxpackage -Name Microsoft.DesiredStateConfiguration-Preview)))
77
}
88

99
It 'Should find DSC appx resources' -Skip:$skip {
@@ -16,5 +16,6 @@ Describe 'Tests for Appx resource discovery' {
1616
break
1717
}
1818
}
19+
$found | Should -Be $true
1920
}
2021
}

0 commit comments

Comments
 (0)