fix: use 'success' value for better accuracy (#14624)
* fix: use 'success' value for better accuracy * add success to test --------- Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -19,6 +19,7 @@ describe("checkRateLimitAndThrowError", () => {
|
||||
limit: 10,
|
||||
remaining: -1,
|
||||
reset: Date.now() + 10000,
|
||||
success: false,
|
||||
} as RatelimitResponse;
|
||||
});
|
||||
|
||||
@@ -35,6 +36,7 @@ describe("checkRateLimitAndThrowError", () => {
|
||||
limit: 10,
|
||||
remaining: 5,
|
||||
reset: Date.now() + 10000,
|
||||
success: true,
|
||||
} as RatelimitResponse;
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user