Skip to content

Commit

Permalink
Do not pin date when creating yesterday's date
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Hobbs committed Jun 9, 2020
1 parent 242e3f2 commit 8bded7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/jwt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ describe('jwt', () => {
});

it('validate auth_time + max_age is in the future', async () => {
const yesterday = new Date(now);
const yesterday = new Date();
yesterday.setDate(yesterday.getDate() - 1);

const maxAge = 1;
Expand Down

0 comments on commit 8bded7a

Please sign in to comment.