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 a3dd6be commit 43d50a4Copy full SHA for 43d50a4
powershell-adapter/Tests/win_powershellgroup.tests.ps1
@@ -332,9 +332,10 @@ class PSClassResource {
332
}
333
334
335
- $resources = dsc -l trace resource list --adapter Microsoft.Windows/WindowsPowerShell | ConvertFrom-Json
+ $out = dsc -l trace resource list --adapter Microsoft.Windows/WindowsPowerShell | ConvertFrom-Json
336
$LASTEXITCODE | Should -Be 0
337
- $resources.type | Should -Contain 'PSClassResource/PSClassResource'
+ $out.type | Should -Contain 'PSClassResource/PSClassResource'
338
+ $out | Where-Object -Property type -EQ PSClassResource/PSClassResource | Select-Object -ExpandProperty implementedAs | Should -Be 1 # Class-based
339
340
341
It 'Get works with class-based PS DSC resources' -Skip:(!$IsWindows) {
0 commit comments