Skip to content

Commit a649477

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Updated tests
1 parent 0ca1464 commit a649477

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ 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
170+
$MgCommand.Method | Select-Object -Unique | should -HaveCount 2
171+
$MgCommand.APIVersion | Select-Object -Unique | should -HaveCount 2
172+
$MgCommand.Variants | Select-Object -Unique | should -HaveCount 2
173173
$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")
174+
$MgCommand.Command | Select-Object -Unique | Should -BeIn @("Get-MgBetaIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider", "Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider")
175175
} | Should -Not -Throw
176176
}
177177
}

0 commit comments

Comments
 (0)