This commit is contained in:
parent
acf192f7e4
commit
d2461d67c9
|
@ -36,14 +36,14 @@ describe('Renew Token', () => {
|
|||
|
||||
it('NOT should renew', async() => {
|
||||
let error;
|
||||
let response;
|
||||
try {
|
||||
const response = await models.VnUser.renewToken(ctx);
|
||||
|
||||
expect(error).toBeUnDefined();
|
||||
expect(error.statusCode).toBe(200);
|
||||
expect(response.token.id).toEqual(ctx.req.accessToken.id);
|
||||
response = await models.VnUser.renewToken(ctx);
|
||||
} catch (e) {
|
||||
error = e;
|
||||
}
|
||||
|
||||
expect(error).toBeUndefined();
|
||||
expect(response.id).toEqual(ctx.req.accessToken.id);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue