website service tests

This commit is contained in:
2025-12-23 23:36:55 +01:00
parent efcdbd17f2
commit 43a8afe7a9
13 changed files with 1107 additions and 1 deletions

View File

@@ -8,7 +8,9 @@ import { Blocker } from './Blocker';
export class ThrottleBlocker extends Blocker {
private lastExecutionTime = 0;
constructor(private readonly delayMs: number) {}
constructor(private readonly delayMs: number) {
super();
}
canExecute(): boolean {
return Date.now() - this.lastExecutionTime >= this.delayMs;