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' {
151151 "_exist": false
152152 }
153153'@
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
155155 $LASTEXITCODE | Should - Be 0
156156 $result.keyPath | Should - Be ' HKCU\1\2\3'
157157 $result.valueName | Should - Be ' Hello'
@@ -172,7 +172,7 @@ Describe 'registry config whatif tests' {
172172 "_exist": false
173173 }
174174'@
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
176176 $LASTEXITCODE | Should - Be 0
177177 $result.keyPath | Should - Be ' HKCU\1\2\3'
178178 $result._metadata.whatIf | Should -Match " Would delete subkey '3'"
You can’t perform that action at this time.
0 commit comments