Skip to content

Commit 38a632f

Browse files
committed
Add one more test case.
1 parent 33428c8 commit 38a632f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/v2/providers/https.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,9 @@ describe("onCall", () => {
536536
const validResp = await runHandler(func, request({ auth: { meaning: "42" } }));
537537
expect(validResp.status).to.equal(200);
538538

539+
const wrongValResp = await runHandler(func, request({ auth: { meaning: "43" } }));
540+
expect(wrongValResp.status).to.equal(403);
541+
539542
const noClaimResp = await runHandler(func, request({ auth: {} }));
540543
expect(noClaimResp.status).to.equal(403);
541544
});
@@ -567,6 +570,7 @@ describe("onCall", () => {
567570
},
568571
() => true
569572
);
573+
570574
const validResp = await runHandler(func, request({ auth: { pro: true, eap: true } }));
571575
expect(validResp.status).to.equal(200);
572576

0 commit comments

Comments
 (0)