Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Update test description to match reality
Browse files Browse the repository at this point in the history
  • Loading branch information
byrichardpowell committed Aug 24, 2023
1 parent f29c1bc commit 54d862d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/__tests__/hmac-validator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('validateHmac', () => {
);
});

test('throws InvalidHmacError when timestamp is more than 10 seconds in the future', async () => {
test('throws InvalidHmacError when timestamp is more than 90 seconds in the future', async () => {
shopify.config.apiSecretKey = 'my super secret key';
const timestamp = String(getCurrentTimeInSec() + 91);
const queryString = `code=some+code+goes+here&shop=the+shop+URL&state=some+nonce+passed+from+auth&timestamp=${timestamp}`;
Expand Down Expand Up @@ -175,7 +175,7 @@ describe('validateHmac', () => {
);
});

test('throws InvalidHmacError when timestamp is more than 10 seconds in the future', async () => {
test('throws InvalidHmacError when timestamp is more than 90 seconds in the future', async () => {
shopify.config.apiSecretKey = 'my super secret key';
const timestamp = String(getCurrentTimeInSec() + 91);
const queryString = `code=some+code+goes+here&shop=the+shop+URL&state=some+nonce+passed+from+auth&timestamp=${timestamp}`;
Expand Down

0 comments on commit 54d862d

Please sign in to comment.