diff options
author | crupest <crupest@outlook.com> | 2020-08-08 19:50:54 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-08 19:50:54 +0800 |
commit | 8b51558bdda8f828b9b64ec00705928ac76bc0e4 (patch) | |
tree | e5e53ec35398eef1dd3a8762c0f1afb9adab3daa /Timeline/ClientApp/src/app/http/mock/token.ts | |
parent | 3920980d87977156938a278ec23e4d33e1ed109c (diff) | |
download | timeline-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.ts | 4 |
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 {
|