Skip to content

Commit d2df3ed

Browse files
committed
throw provided exception example
1 parent 307cddd commit d2df3ed

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/security.handlers.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ describe('security.handlers', () => {
4040
},
4141
testKey: async (req, scopes, schema) => {
4242
let key = req.query.key;
43-
console.log('-------key');
4443
if (key !== "ok") {
4544
throw new MyForbiddenError("Wrong key value");
4645
}
@@ -71,10 +70,8 @@ describe('security.handlers', () => {
7170
.get('/no_security', (req, res) => {res.json({ logged_in: true })})
7271
.get("/test_key", function(req, res, next) {
7372
if (req.query.key === "ok") {
74-
console.log('-------key ok');
7573
throw new MyUserError("Everything is fine");
7674
} else {
77-
console.log('-------key wrong');
7875
throw new MyForbiddenError("Wrong key value");
7976
}
8077
}),

0 commit comments

Comments
 (0)