We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d91184 commit f3e5c22Copy full SHA for f3e5c22
extensions/appx/appx.tests.ps1
@@ -3,7 +3,7 @@
3
4
Describe 'Tests for Appx resource discovery' {
5
BeforeAll {
6
- $skip = (!$IsWindows -or ($null -eq (get-appxpackage -Name Microsoft.DesiredStateConfiguration-Preview)))
+ $skip = (!$IsWindows -or ($null -eq (Get-Command Get-AppxPackage -ErrorAction Ignore)) -or ($null -eq (get-appxpackage -Name Microsoft.DesiredStateConfiguration-Preview)))
7
}
8
9
It 'Should find DSC appx resources' -Skip:$skip {
@@ -16,5 +16,6 @@ Describe 'Tests for Appx resource discovery' {
16
break
17
18
19
+ $found | Should -Be $true
20
21
0 commit comments