Skip to content

Commit 1598c09

Browse files
committed
Fix unit test
1 parent 50d6478 commit 1598c09

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

library/sources/Lambda.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,14 @@ t.test("it sends heartbeat after first and every 10 minutes", async () => {
303303
total: 0,
304304
blocked: 0,
305305
},
306+
blocked: {
307+
total: 0,
308+
allowedIpsRoute: 0,
309+
userAgent: 0,
310+
ipBlocklist: 0,
311+
userBlocked: 0,
312+
},
313+
rateLimited: 0,
306314
},
307315
},
308316
middlewareInstalled: false,
@@ -460,6 +468,14 @@ t.test("it counts attacks", async () => {
460468
total: 1,
461469
blocked: 0,
462470
},
471+
blocked: {
472+
total: 0,
473+
allowedIpsRoute: 0,
474+
userAgent: 0,
475+
ipBlocklist: 0,
476+
userBlocked: 0,
477+
},
478+
rateLimited: 0,
463479
},
464480
});
465481
});

0 commit comments

Comments
 (0)