This commit is contained in:
parent
703e16ffcd
commit
318761185b
|
@ -30,7 +30,6 @@ describe('Renew Token', () => {
|
||||||
it('should renew token', async() => {
|
it('should renew token', async() => {
|
||||||
const mockDate = new Date(startingTime + 26600000);
|
const mockDate = new Date(startingTime + 26600000);
|
||||||
jasmine.clock().mockDate(mockDate);
|
jasmine.clock().mockDate(mockDate);
|
||||||
console.log(startingTime, mockDate)
|
|
||||||
const {id} = await models.VnUser.renewToken(ctx);
|
const {id} = await models.VnUser.renewToken(ctx);
|
||||||
|
|
||||||
expect(id).not.toEqual(ctx.req.accessToken.id);
|
expect(id).not.toEqual(ctx.req.accessToken.id);
|
||||||
|
|
Loading…
Reference in New Issue