mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-11-26 07:26:18 +01:00
remove: disable Drag Tray feature and related configurations (#850)
To ensure old backups continue to function, backup handling now skips any unknown features found in backups.
This commit is contained in:
@@ -49,10 +49,12 @@ Describe 'Test-RegistryBackupMatchesSelectedFeatures' {
|
||||
$script:CapturePlanCalls | Should -Be @($true)
|
||||
}
|
||||
|
||||
It 'reports unknown selected features without deriving capture plans' {
|
||||
It 'warns and skips unknown selected features without deriving capture plans' {
|
||||
Mock Write-Warning {}
|
||||
$errors = @(Test-RegistryBackupMatchesSelectedFeatures -SelectedFeatureIds @('UnknownFeature') -SelectedUndoFeatureIds @() -Target 'CurrentUser' -RegistryKeys @())
|
||||
|
||||
$errors | Should -Contain "Selected feature 'UnknownFeature' was not found in the current feature catalog."
|
||||
$errors | Should -BeNullOrEmpty
|
||||
Should -Invoke Write-Warning -Times 1 -Exactly -ParameterFilter { $Message -like '*UnknownFeature*' }
|
||||
$script:CapturePlanCalls | Should -BeNullOrEmpty
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user