Skip to content

Commit

Permalink
Fix integration test (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
96malhar authored Apr 22, 2024
1 parent 65dd1d9 commit b803406
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

using Amazon.CognitoIdentityProvider.Model;
using Amazon.Extensions.CognitoAuthentication.Util;
using System.Linq;

namespace Amazon.Extensions.CognitoAuthentication.IntegrationTests
{
Expand Down Expand Up @@ -55,7 +56,7 @@ await user.StartWithSrpAuthAsync(new InitiateSrpAuthRequest()
}).ConfigureAwait(false);
GetUserResponse userDetails = await user.GetUserDetailsAsync().ConfigureAwait(false);

Assert.True(string.Equals(userDetails.UserAttributes[2].Name, CognitoConstants.UserAttrEmail, StringComparison.Ordinal));
Assert.True(userDetails.UserAttributes.Any(x => string.Equals(x.Name, CognitoConstants.UserAttrEmail, StringComparison.Ordinal)));
Assert.Empty(userDetails.MFAOptions);
}

Expand Down

0 comments on commit b803406

Please sign in to comment.