Skip to content

Commit

Permalink
chore: fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Aug 23, 2024
1 parent b20ed86 commit 3cdfd44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/server/tests/nestjs/throttler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ test('should be able to prevent requests if limit is reached', async t => {
const stub = Sinon.stub(app.get(ThrottlerStorage), 'increment').resolves({
timeToExpire: 10,
totalHits: 21,
isBlocked: false,
timeToBlockExpire: 0,
});
const res = await request(app.getHttpServer())
.get('/nonthrottled/strict')
Expand Down

0 comments on commit 3cdfd44

Please sign in to comment.