mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-08-23 16:12:08 +00:00
Add comprehensive test suite, fix minor issues, rename function and file names to match approved verbs (#708)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user