Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Jan 7, 2025
1 parent 859660e commit 1d2730d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/route-rate-limit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ test('limit reset per Local storage', { skip: true }, async (t) => {
}
}
},
(reply) => {
(_req, reply) => {
reply.send('hello!')
}
)
Expand Down Expand Up @@ -1465,7 +1465,7 @@ test('should consider routes allow list', async (t) => {
rateLimit: { allowList: ['127.0.0.1'], max: 2, timeWindow: 10000 }
}
},
(reply) => {
(_req, reply) => {
reply.send('hello!')
}
)
Expand Down Expand Up @@ -1636,7 +1636,7 @@ test("child's allowList should not crash the app", async (t) => {
rateLimit: { allowList: ['127.0.0.1'], max: 2, timeWindow: 10000 }
}
},
(reply) => {
(_req, reply) => {
reply.send('hello!')
}
)
Expand Down Expand Up @@ -1665,7 +1665,7 @@ test("child's allowList function should not crash and should override parent", a
rateLimit: { allowList: () => false, max: 2, timeWindow: 10000 }
}
},
(reply) => {
(_req, reply) => {
reply.send('hello!')
}
)
Expand Down Expand Up @@ -1695,7 +1695,7 @@ test('rateLimit decorator should work when a property other than timeWindow is m
max: 1
})
},
(reply) => {
(_req, reply) => {
reply.send('hello!')
}
)
Expand Down

0 comments on commit 1d2730d

Please sign in to comment.