Skip to content

Commit

Permalink
test: assert cache arg is acceptable
Browse files Browse the repository at this point in the history
Context: #81 (comment)

Co-authored-by: Gregor Martynus <[email protected]>
  • Loading branch information
francisfuzz and gr2m committed Sep 16, 2024
1 parent 903cdfe commit c7b600e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ export async function verifyRequestByKeyIdTest(

// accepts a request argument
await verifyRequestByKeyId(rawBody, signature, keyId, { request });

// accepts a cache argument
await verifyRequestByKeyId(rawBody, signature, keyId, {
cache: { id: "test", keys: [] },
});
}

export async function verifyRequestTest(
Expand Down

0 comments on commit c7b600e

Please sign in to comment.