mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-11-26 07:26:18 +01:00
fix: update error handling in Test-RegistryKeySnapshotCanBeRestored to use specific ErrorId (#885)
This commit is contained in:
@@ -221,7 +221,7 @@ Describe 'Test-RegistryKeySnapshotCanBeRestored' {
|
|||||||
}
|
}
|
||||||
|
|
||||||
{ Test-RegistryKeySnapshotCanBeRestored -Snapshot $snapshot } |
|
{ Test-RegistryKeySnapshotCanBeRestored -Snapshot $snapshot } |
|
||||||
Should -Throw '*Value was either too large or too small*'
|
Should -Throw -ErrorId 'InvalidCastIConvertible*'
|
||||||
}
|
}
|
||||||
|
|
||||||
It 'rejects a descendant that is not directly below its declared parent' {
|
It 'rejects a descendant that is not directly below its declared parent' {
|
||||||
|
|||||||
Reference in New Issue
Block a user