mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
was added new rules to usernames
This commit is contained in:
@@ -89,15 +89,7 @@ public class JwtTokenHasherTests
|
||||
{
|
||||
// Arrange
|
||||
var emptyConfig = new ConfigurationBuilder().Build();
|
||||
var hasherWithDefaultSecret = new JwtTokenHasher(emptyConfig);
|
||||
|
||||
string token = _fixture.Create<string>();
|
||||
|
||||
// Act
|
||||
string hash = hasherWithDefaultSecret.HashToken(token);
|
||||
var result = hasherWithDefaultSecret.VerifyToken(token, hash);
|
||||
|
||||
// Assert
|
||||
Assert.That(result, Is.True);
|
||||
// Act & Assert
|
||||
Assert.Throws<InvalidOperationException>(() => new JwtTokenHasher(emptyConfig));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user