Skip to content

Commit

Permalink
correct broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Nov 17, 2023
1 parent b8222ff commit 0f2fed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/Testing/LexCore/LexAuthUserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void CanGetClaimsFromUser()
var idClaim = new Claim(LexAuthConstants.IdClaimType, _user.Id.ToString());
var emailClaim = new Claim(LexAuthConstants.EmailClaimType, _user.Email);
var roleClaim = new Claim(LexAuthConstants.RoleClaimType, _user.Role.ToString());
var projectClaim = new Claim("proj", _user.ProjectsJson);
var projectClaim = new Claim("proj", JsonSerializer.Serialize(_user.Projects[0]));
claims.ShouldSatisfyAllConditions(
() => claims.ShouldContain(idClaim.ToString()),
() => claims.ShouldContain(emailClaim.ToString()),
Expand Down Expand Up @@ -106,7 +106,7 @@ public void CheckingJwtLength()
{
var user = _user with { Projects = Array.Empty<AuthUserProject>() };
var projectCode = new string(Enumerable.Range(0, 15).Select(i => (char)('a' + i)).ToArray());
for (int projectCount = 0; projectCount < 170; projectCount++)
for (int projectCount = 0; projectCount < 60; projectCount++)
{
user = user with
{
Expand Down

0 comments on commit 0f2fed8

Please sign in to comment.