We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 352f51e commit 592710aCopy full SHA for 592710a
tests/Unit/Private/Invoke-ReportServerSetupAction.Tests.ps1
@@ -128,6 +128,8 @@ Describe 'Invoke-ReportServerSetupAction' -Tag 'Private' {
128
129
It 'Should throw a terminating error and not continue execution' {
130
InModuleScope -ScriptBlock {
131
+ # This test verifies the fix for issue #2070 where Assert-ElevatedUser
132
+ # would throw an error but the function would continue executing
133
{ Invoke-ReportServerSetupAction @mockDefaultParameters } |
134
Should -Throw -ExpectedMessage '*This command must run in an elevated PowerShell session*'
135
}
0 commit comments