File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ Describe 'registry config whatif tests' {
151
151
"_exist": false
152
152
}
153
153
'@
154
- $result = registry config set - w -- input $whatif_delete_value | ConvertFrom-Json
154
+ $result = registry config set - w -- input $whatif_delete_value 2> $null | ConvertFrom-Json
155
155
$LASTEXITCODE | Should - Be 0
156
156
$result.keyPath | Should - Be ' HKCU\1\2\3'
157
157
$result.valueName | Should - Be ' Hello'
@@ -172,7 +172,7 @@ Describe 'registry config whatif tests' {
172
172
"_exist": false
173
173
}
174
174
'@
175
- $result = registry config set - w -- input $whatif_delete_key | ConvertFrom-Json
175
+ $result = registry config set - w -- input $whatif_delete_key 2> $null | ConvertFrom-Json
176
176
$LASTEXITCODE | Should - Be 0
177
177
$result.keyPath | Should - Be ' HKCU\1\2\3'
178
178
$result._metadata.whatIf | Should -Match " Would delete subkey '3'"
You can’t perform that action at this time.
0 commit comments