Skip to content

Commit f44f40f

Browse files
committed
Updated failing pester test
1 parent e68f15c commit f44f40f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/Authentication/Authentication/test/Find-MgGraphCommand.Tests.ps1

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,10 @@ Describe "Find-MgGraphCommand Command" {
165165
It 'Should find commands for uri with Microsoft.Graph prefix in nested segments' {
166166
{
167167
$MgCommand = Find-MgGraphCommand -Uri "/identity/authenticationEventsFlows/{authenticationEventsFlow-id}/microsoft.graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders"
168-
$MgCommand | Should -HaveCount 1
169-
$MgCommand.Command | Select-Object -Unique | should -HaveCount 1
170-
$MgCommand.Method | Select-Object -Unique | should -HaveCount 1
171-
$MgCommand.APIVersion | Select-Object -Unique | should -HaveCount 1
172-
$MgCommand.Variants | Select-Object -Unique | should -HaveCount 1
168+
$MgCommand | Should -HaveCount 2
169+
$MgCommand.Command | Select-Object -Unique | should -HaveCount 2
173170
$MgCommand.URI | Select-Object -Unique | Should -Be "/identity/authenticationEventsFlows/{authenticationEventsFlow-id}/externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders"
174-
$MgCommand.Command | Select-Object -Unique | Should -BeIn @("Get-MgBetaIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider")
171+
$MgCommand.Command | Select-Object -Unique | Should -BeIn @("Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider","Get-MgBetaIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider")
175172
} | Should -Not -Throw
176173
}
177174
}

0 commit comments

Comments
 (0)