refs #6264 test: perf renew-token.spec.js
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Javier Segarra 2023-12-14 12:25:40 +01:00
parent acf192f7e4
commit d2461d67c9
1 changed files with 5 additions and 5 deletions

View File

@ -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);
});
});