expose verifySignatureFn to be injected #866
Annotations
4 errors and 1 warning
|
src/handlers/shared/saleor-webhook-validator.test.ts > SaleorWebhookValidator > JWKS re-try validation > Triggers JWKS refresh when initial auth data contains empty JWKS:
src/handlers/shared/saleor-webhook-validator.test.ts#L298
AssertionError: expected { result: 'failure', …(1) } to match object { result: 'ok', …(1) }
(2 matching properties omitted from actual)
- Expected
+ Received
{
- "context": ObjectContaining {
- "baseUrl": "https://example-app.com/api",
- "event": "product_updated",
- "payload": {},
- "schemaVersion": null,
- },
- "result": "ok",
+ "result": "failure",
}
❯ src/handlers/shared/saleor-webhook-validator.test.ts:298:22
|
|
src/handlers/shared/saleor-webhook-validator.test.ts > SaleorWebhookValidator > JWKS re-try validation > Triggers JWKS refresh when token signature doesn't match JWKS from existing auth data:
src/handlers/shared/saleor-webhook-validator.test.ts#L333
AssertionError: expected { result: 'failure', …(1) } to match object { result: 'ok', …(1) }
(2 matching properties omitted from actual)
- Expected
+ Received
{
- "context": ObjectContaining {
- "baseUrl": "https://example-app.com/api",
- "event": "product_updated",
- "payload": {},
- "schemaVersion": null,
- },
- "result": "ok",
+ "result": "failure",
}
❯ src/handlers/shared/saleor-webhook-validator.test.ts:333:22
|
|
src/handlers/shared/saleor-webhook-validator.test.ts > SaleorWebhookValidator > JWKS re-try validation > Returns an error when signature doesn't match JWKS after re-fetching it:
src/handlers/shared/saleor-webhook-validator.test.ts#L401
AssertionError: expected "verifySignatureWithJwks" to be called 2 times, but got 0 times
❯ src/handlers/shared/saleor-webhook-validator.test.ts:401:61
|
|
test
Process completed with exit code 1.
|
|
lint:
src/handlers/platforms/fetch-api/platform-adapter.ts#L30
Unexpected any. Specify a different type
|