Skip to content

Commit

Permalink
add cache false test
Browse files Browse the repository at this point in the history
  • Loading branch information
devinstewart committed Nov 24, 2024
1 parent 398c7ae commit 7615631
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions __tests__/local.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ describe('test validate locally', () => {
expect(payload).toStrictEqual(payloads.validNotificationSv2);
});

it('succussfully validates Notification SignatureVersion 2', async () => {

const request = {
method: 'POST',
json: () => payloads.validNotificationSv2
};
const validator = new Validator({ useCache: false });
const payload = await validator.validate(request);
expect(payload).toStrictEqual(payloads.validNotificationSv2);
});


it('succussfully validates Notification with Subject', async () => {

const request = {
Expand Down

0 comments on commit 7615631

Please sign in to comment.