aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/Controllers/TokenControllerTest.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-18 00:50:31 +0800
committercrupest <crupest@outlook.com>2020-01-18 00:50:31 +0800
commitc5f3c69b3a008ab87542e523e2a59f37801bd65a (patch)
tree8479cc9af91a7e7b1c0c60a0abc778244359bdbd /Timeline.Tests/Controllers/TokenControllerTest.cs
parent289c7e1fada1f4dae6ce5e421e997ebddd55c2df (diff)
downloadtimeline-c5f3c69b3a008ab87542e523e2a59f37801bd65a.tar.gz
timeline-c5f3c69b3a008ab87542e523e2a59f37801bd65a.tar.bz2
timeline-c5f3c69b3a008ab87542e523e2a59f37801bd65a.zip
...
Diffstat (limited to 'Timeline.Tests/Controllers/TokenControllerTest.cs')
-rw-r--r--Timeline.Tests/Controllers/TokenControllerTest.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline.Tests/Controllers/TokenControllerTest.cs b/Timeline.Tests/Controllers/TokenControllerTest.cs
index 238fc237..371884bb 100644
--- a/Timeline.Tests/Controllers/TokenControllerTest.cs
+++ b/Timeline.Tests/Controllers/TokenControllerTest.cs
@@ -10,7 +10,7 @@ using Timeline.Models.Http;
using Timeline.Services;
using Timeline.Tests.Helpers;
using Xunit;
-using static Timeline.ErrorCodes.Http.Token;
+using static Timeline.ErrorCodes.Token;
namespace Timeline.Tests.Controllers
{
@@ -98,7 +98,7 @@ namespace Timeline.Tests.Controllers
public static IEnumerable<object[]> Verify_BadRequest_Data()
{
- yield return new object[] { new JwtVerifyException(JwtVerifyException.ErrorCodes.Expired), Verify.Expired };
+ yield return new object[] { new JwtVerifyException(JwtVerifyException.ErrorCodes.Expired), Verify.TimeExpired };
yield return new object[] { new JwtVerifyException(JwtVerifyException.ErrorCodes.IdClaimBadFormat), Verify.BadFormat };
yield return new object[] { new JwtVerifyException(JwtVerifyException.ErrorCodes.OldVersion), Verify.OldVersion };
yield return new object[] { new UserNotExistException(), Verify.UserNotExist };