Skip to content

Commit

Permalink
docs(api): Fix rate limit mock comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rifont committed Nov 14, 2023
1 parent 944df01 commit 2831766
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('EvaluateApiRateLimit', async () => {
.stub(getApiRateLimitConfiguration, 'defaultApiRateLimitConfiguration')
.value(mockApiRateLimitConfiguration);
// This mock is slightly uncomfortable because it's dependent on the algorithm implementation,
// but it is required due to the cache having a hard dependency on running a Lua script which
// but it is required due to the algorithm having a hard dependency on running a Lua script which
// would require further mocking.
// The first value is the remaining rate limit, the second value is the reset time.
cacheServiceEvalStub = sinon.stub(cacheService, 'eval').resolves([mockRemaining, mockReset]);
Expand Down

0 comments on commit 2831766

Please sign in to comment.