aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/http/mock/token.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-08 19:50:54 +0800
committercrupest <crupest@outlook.com>2020-08-08 19:50:54 +0800
commit8b51558bdda8f828b9b64ec00705928ac76bc0e4 (patch)
treee5e53ec35398eef1dd3a8762c0f1afb9adab3daa /Timeline/ClientApp/src/app/http/mock/token.ts
parent3920980d87977156938a278ec23e4d33e1ed109c (diff)
downloadtimeline-8b51558bdda8f828b9b64ec00705928ac76bc0e4.tar.gz
timeline-8b51558bdda8f828b9b64ec00705928ac76bc0e4.tar.bz2
timeline-8b51558bdda8f828b9b64ec00705928ac76bc0e4.zip
...
Diffstat (limited to 'Timeline/ClientApp/src/app/http/mock/token.ts')
-rw-r--r--Timeline/ClientApp/src/app/http/mock/token.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/ClientApp/src/app/http/mock/token.ts b/Timeline/ClientApp/src/app/http/mock/token.ts
index 6924e7d7..6929be2a 100644
--- a/Timeline/ClientApp/src/app/http/mock/token.ts
+++ b/Timeline/ClientApp/src/app/http/mock/token.ts
@@ -14,7 +14,7 @@ import { getUser, MockUserNotExistError, checkToken } from './user';
export class MockHttpTokenClient implements IHttpTokenClient {
// TODO: Mock bad credentials error.
async create(req: HttpCreateTokenRequest): Promise<HttpCreateTokenResponse> {
- await mockPrepare();
+ await mockPrepare('token.create');
try {
const user = await getUser(req.username);
return {
@@ -35,7 +35,7 @@ export class MockHttpTokenClient implements IHttpTokenClient {
}
async verify(req: HttpVerifyTokenRequest): Promise<HttpVerifyTokenResponse> {
- await mockPrepare();
+ await mockPrepare('token.verify');
try {
const user = await getUser(checkToken(req.token));
return {