mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-08-23 16:12:08 +00:00
fix: improve error handling for registry file imports and telemetry scheduled tasks
This commit is contained in:
@@ -67,6 +67,18 @@ Describe 'Test-ConfigConsistency' {
|
||||
Test-ConfigConsistency -Config $config | Should -Match 'Apps entries must be strings'
|
||||
}
|
||||
|
||||
It 'reports an error for malformed tweak entries' {
|
||||
$config = [PSCustomObject]@{ Version = '1.0'; Tweaks = @(@{ Value = $true }) }
|
||||
|
||||
Test-ConfigConsistency -Config $config | Should -Match 'Tweaks entries must contain Name and Value properties'
|
||||
}
|
||||
|
||||
It 'reports an error for deployment entries missing a required property' {
|
||||
$config = [PSCustomObject]@{ Version = '1.0'; Deployment = @(@{ Name = 'CreateRestorePoint' }) }
|
||||
|
||||
Test-ConfigConsistency -Config $config | Should -Match 'Deployment entries must contain Name and Value properties'
|
||||
}
|
||||
|
||||
It 'reports an error for nonnumeric deployment indexes' {
|
||||
$config = [PSCustomObject]@{
|
||||
Version = '1.0'
|
||||
|
||||
Reference in New Issue
Block a user