Skip to content

Commit cd7f5c9

Browse files
sbeckerivstainless-app[bot]
authored andcommitted
Next test fix
What happened: Commit 5a40af5 ("docs: improve examples") updated the test payload from an account_holder.created webhook event to a digital_wallet.tokenization_approval_request event — the JSON string on line 242 was entirely replaced with a richer example payload. But the assertion on line 264 still checked for 'account_holder.created', which no longer matched the event_type in the new payload. The fix was just updating that one assertion to match the new payload's actual event type.
1 parent d19ad26 commit cd7f5c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/api-resources/webhooks.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ describe('resource webhooks', () => {
261261
const event = lithic.webhooks.parse(payload, { headers, secret });
262262
expect(event).toBeDefined();
263263
if ('event_type' in event) {
264-
expect(event.event_type).toBe('account_holder.created');
264+
expect(event.event_type).toBe('digital_wallet.tokenization_approval_request');
265265
}
266266
});
267267

0 commit comments

Comments
 (0)