Tests/Unit/Public/Risk/Get-SCARiskProgress.Tests.ps1
|
Import-Module (Join-Path $PSScriptRoot '../../../../psSCA.psd1') -Force Describe 'Get-SCARiskProgress' { InModuleScope psSCA { It 'calls the progress endpoint' { Mock Invoke-SCARequest { } Get-SCARiskProgress | Out-Null Should -Invoke Invoke-SCARequest -ParameterFilter { $Service -eq 'Compass' -and $Method -eq 'GET' -and $Path -eq '/risk-posture/secure-standing-privilege/progress' } } } } |