Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryfu-msft committed Nov 19, 2024
1 parent d79a85a commit 2e4e68d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PowerShell/tests/Microsoft.WinGet.DSC.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ BeforeAll {

Describe 'List available DSC resources'{
It 'Shows DSC Resources'{
$expectedDSCResources = "WinGetAdminSettings", "WinGetPackage", "WinGetPackageManager", "WinGetSource", "WinGetUserSettings"
$expectedDSCResources = "WinGetAdminSettings", "WinGetPackage", "WinGetPackageManager", "WinGetSource", "WinGetUserSettings", "WinGetConfigRoot"
$availableDSCResources = (Get-DscResource -Module Microsoft.WinGet.DSC).Name
$availableDSCResources.length | Should -Be 5
$availableDSCResources.length | Should -Be 6
$availableDSCResources | Where-Object {$expectedDSCResources -notcontains $_} | Should -BeNullOrEmpty -ErrorAction Stop
}
}
Expand Down Expand Up @@ -258,7 +258,7 @@ Describe 'WinGetConfigRoot' {

# Verify that $WinGetConfigRoot variable is set.
$result = InvokeWinGetDSC -Name WinGetConfigRoot -Method Get -Property @{WinGetScope = $_}
$result.Exists | Should -Be $true
$result.Exist | Should -Be $true
$result.Path | Should -Be 'C:\Foo\Bar'
$result.WinGetScope | Should -Be $_

Expand All @@ -270,7 +270,7 @@ Describe 'WinGetConfigRoot' {

$result2 = InvokeWinGetDSC -Name WinGetConfigRoot -Method Get -Property @{WinGetScope = $_}
$result2.WinGetConfigRoot = "WinGetConfigRoot"
$result2.Exists | Should -Be $false
$result2.Exist | Should -Be $false
$result2.Path | Should -Be ""
$result2.WinGetScope | Should -Be $_
}
Expand Down

0 comments on commit 2e4e68d

Please sign in to comment.