mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-07-20 21:10:20 +08:00
14 lines
479 B
PowerShell
14 lines
479 B
PowerShell
BeforeAll {
|
|
. (Join-Path $PSScriptRoot '..\Scripts\Helpers\Get-TargetUserForAppRemoval.ps1')
|
|
}
|
|
|
|
Describe 'Get-TargetUserForAppRemoval' {
|
|
It '<Case>' -ForEach @(
|
|
@{ Case = 'defaults to all users'; Params = @{}; Expected = 'AllUsers' }
|
|
@{ Case = 'returns an explicit target unchanged'; Params = @{ AppRemovalTarget = 'Alice' }; Expected = 'Alice' }
|
|
) {
|
|
$script:Params = $Params
|
|
Get-TargetUserForAppRemoval | Should -Be $Expected
|
|
}
|
|
}
|