Update rate-limiter.test.ts

This commit is contained in:
Nicolas 2024-08-28 14:53:02 -03:00
parent 4edd9a34c7
commit 547da88ccd

View File

@ -79,7 +79,7 @@ describe("Rate Limiter Service", () => {
"test-prefix:someToken", "test-prefix:someToken",
"growth" "growth"
); );
expect(limiter4.points).toBe(150); expect(limiter4.points).toBe(250);
}); });
it("should return the default rate limiter if plan is not provided", () => { it("should return the default rate limiter if plan is not provided", () => {
@ -153,7 +153,7 @@ describe("Rate Limiter Service", () => {
"crawlStatus" as RateLimiterMode, "crawlStatus" as RateLimiterMode,
"test-prefix:someToken" "test-prefix:someToken"
); );
expect(limiter2.points).toBe(150); expect(limiter2.points).toBe(250);
}); });
it("should consume points correctly for 'crawl' mode", async () => { it("should consume points correctly for 'crawl' mode", async () => {
@ -315,7 +315,7 @@ describe("Rate Limiter Service", () => {
"crawlStatus" as RateLimiterMode, "crawlStatus" as RateLimiterMode,
"test-prefix:someToken" "test-prefix:someToken"
); );
expect(limiter2.points).toBe(150); expect(limiter2.points).toBe(250);
}); });
it("should return the correct rate limiter for 'testSuite' mode", () => { it("should return the correct rate limiter for 'testSuite' mode", () => {