We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33428c8 commit 38a632fCopy full SHA for 38a632f
spec/v2/providers/https.spec.ts
@@ -536,6 +536,9 @@ describe("onCall", () => {
536
const validResp = await runHandler(func, request({ auth: { meaning: "42" } }));
537
expect(validResp.status).to.equal(200);
538
539
+ const wrongValResp = await runHandler(func, request({ auth: { meaning: "43" } }));
540
+ expect(wrongValResp.status).to.equal(403);
541
+
542
const noClaimResp = await runHandler(func, request({ auth: {} }));
543
expect(noClaimResp.status).to.equal(403);
544
});
@@ -567,6 +570,7 @@ describe("onCall", () => {
567
570
},
568
571
() => true
569
572
);
573
574
const validResp = await runHandler(func, request({ auth: { pro: true, eap: true } }));
575
576
0 commit comments