Skip to content

Commit

Permalink
test(users): fix 'Forgotten_Password_With_An_Existing_User'
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosPavajeau committed Nov 5, 2021
1 parent c164d87 commit 83dad59
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Threading;
using System.Threading.Tasks;
using Armory.Api.Controllers.ArmoryUsers;
using Armory.Shared.Domain;
using Armory.Users.Application.GeneratePasswordResetToken;
using AutoMapper;
using Microsoft.AspNetCore.Mvc;
Expand Down Expand Up @@ -40,13 +39,7 @@ public async Task Forgotten_Password_With_An_Existing_User()

ShouldHaveForgottenPasswordQuery();
Assert.IsNotNull(result);
Assert.IsInstanceOf<OkObjectResult>(result);

var okResult = result as OkObjectResult;

Assert.IsNotNull(okResult);
Assert.IsInstanceOf<string>(okResult.Value);
Assert.AreEqual("reset_token", Utils.Base64ToString(okResult.Value as string));
Assert.IsInstanceOf<OkResult>(result);
}

[Test]
Expand Down

0 comments on commit 83dad59

Please sign in to comment.